← Debugging150 / 640
hardkubectl

Block until a pod reaches a specified condition or the timeout expires

command

kubectl wait --for=condition=ready pod/POD_NAME --timeout TIMEOUT

also accepted

kubectl waitkubectl wait --for=condition=ready pod/POD_NAME

Command breakdown

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

kubectlwait--for=condition=readypod/POD_NAME--timeoutTIMEOUT
FlagPurpose
--forSet to: condition=ready
--timeoutBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →