mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:42:08 +02:00
kubectl wait: add page (#15441)
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
parent
18f6928c21
commit
ebbb779535
1 changed files with 20 additions and 0 deletions
20
pages/common/kubectl-wait.md
Normal file
20
pages/common/kubectl-wait.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# kubectl wait
|
||||
|
||||
> Wait for resource(s) to reach a certain state.
|
||||
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#wait>.
|
||||
|
||||
- Wait for a deployment to become available:
|
||||
|
||||
`kubectl wait --for=condition=available deployment/{{deployment_name}}`
|
||||
|
||||
- Wait for all pods with a certain [l]abel to be ready:
|
||||
|
||||
`kubectl wait --for=condition=ready pod -l {{label_key}}={{label_value}}`
|
||||
|
||||
- Wait for a pod to be deleted:
|
||||
|
||||
`kubectl wait --for=delete pod {{pod_name}}`
|
||||
|
||||
- Wait 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 120s`
|
Loading…
Add table
Reference in a new issue