hardkubectl
Block until a pod reaches a specified condition or the timeout expires
command
kubectl wait --for=condition=ready pod/POD_NAME --timeout TIMEOUTalso accepted
kubectl waitkubectl wait --for=condition=ready pod/POD_NAMEcommand
kubectl wait --for=condition=ready pod/POD_NAME --timeout TIMEOUTalso accepted
kubectl waitkubectl wait --for=condition=ready pod/POD_NAMEPart of the Kubernetes CLI (kubectl) — Debugging category.
| Flag | Purpose |
|---|---|
--for | Set to: condition=ready |
--timeout | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →