Waiting for a pod to be ready
If we need to wait for a pod to come up before proceeding with other actions, we can use kubectl wait
:
kubectl wait --for=condition=ready pod --selector "app=my-app" --timeout=60s
Source: man kubectl-wait
Last updated
Was this helpful?