kubectl wait

Wait for resource(s) to reach a certain state. More information: https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#wait.

kubectl wait --for=condition=available deployment/{{deployment_name}}

kubectl wait --for=condition=ready pod -l {{label_key}}={{label_value}}

kubectl wait --for=delete pod {{pod_name}}

kubectl wait --for=condition=complete job/{{job_name}} --timeout 120s