kubectl wait --for=condition=Ready pod/web-7d8f9c --timeout=60s

Category: Kubernetes & Containers

kubectl wait --for=condition=Ready pod/web-7d8f9c --timeout=60s

Wait for a resource condition

Blocks until the pod reports Ready or the 60 second timeout passes, returning a non-zero exit code on timeout. Scripts use this to sequence dependent deployments. Conditions vary by resource, for example available for deployments.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.