How do you wait for a pod's containers to start running?
I'm trying to wait for a pod's non-init container(s) to start running.
Things I have tried that do not work:
kubectl wait pod/mypod --for condition=initialized
This condition is met once the initContainers have started. This is too early. I want to wait until the initContainers have completed and the main containers have started.
kubectl wait pod/mypod --for condition=containersReady
kubectl wait pod/mypod --for condition=ready
Both of these are too late. I want the condition to be met before the pod's containers' startupProbe
have completed.
I want to wait until the containers are running, but not have to wait until the startup/readiness probes are satisfied. How do I do this?
from Recent Questions - Stack Overflow https://ift.tt/3I4mzOs
https://ift.tt/eA8V8J
Comments
Post a Comment