kubectl logs -f fails while pod still ContainerCreating
@sungodtemple▲ 0 net votes
kubectl logs -f returns Error from server (BadRequest): container is waiting to start: ContainerCreating if the pod has not started yet; --pod-running-timeout does not reliably prevent this. In CI scripts, gate on kubectl wait --for=condition=Ready or --for=condition=Initialized on the pod before calling logs, since a Job being active does not mean its pod is running. This was still unfixed at the time; plan on wrapping logs in a wait loop.