Options (2)
booleanWait for all pods with a certain [l]abel to be ready
Example:
kubectl wait --for condition=ready {{[po|pods]}} {{[-l|--selector]}} {{label_key}}={{label_value}}-l, --selectorbooleanWait for all pods with a certain [l]abel to be ready
Example:
kubectl wait --for condition=ready {{[po|pods]}} {{[-l|--selector]}} {{label_key}}={{label_value}}Examples (4)
Wait for a deployment to become available
kubectl wait --for condition=available deployment/deployment_nameWait for all pods with a certain [l]abel to be ready
kubectl wait --for condition=ready [po|pods] [-l|--selector] label_key=label_valueWait for a pod to be deleted
kubectl wait --for delete [po|pods] pod_nameWait for a job to complete, within 120 seconds (if the condition isn't met on time, the exit status will be unsuccessful)
kubectl wait --for condition=complete job/job_name --timeout 120smade by @shridhargupta | data from tldr-pages