← Pods506 / 640
hardkubectl

Block until a pod reaches the Ready state or the timeout expires

command

kubectl wait pod POD_NAME --for=condition=Ready --timeout=60s

also accepted

kubectl wait podkubectl wait pod POD_NAME --for=condition=Ready

Command breakdown

Part of the Kubernetes CLI (kubectl) — Pods category.

kubectlwaitpodPOD_NAME--for=condition=Ready--timeout=60s
FlagPurpose
--forSet to: condition=Ready
--timeoutSet to: 60s

Test your recall — not just your reading.

Practice with interactive quiz →