mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-22 05:24:13 +02:00
kubectl-label: add option placeholders (#17663)
This commit is contained in:
parent
5d62421af1
commit
d534f2e6f3
1 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
- Label a pod:
|
- Label a pod:
|
||||||
|
|
||||||
`kubectl label pod {{pod_name}} {{key}}={{value}}`
|
`kubectl label {{[po|pod]}} {{pod_name}} {{key}}={{value}}`
|
||||||
|
|
||||||
- Update a pod label by overwriting the existing value:
|
- Update a pod label by overwriting the existing value:
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
- Label all pods in the namespace:
|
- Label all pods in the namespace:
|
||||||
|
|
||||||
`kubectl label pods --all {{key}}={{value}}`
|
`kubectl label {{[po|pods]}} --all {{key}}={{value}}`
|
||||||
|
|
||||||
- Label a pod identified by the pod definition file:
|
- Label a pod identified by the pod definition file:
|
||||||
|
|
||||||
|
@ -21,4 +21,4 @@
|
||||||
|
|
||||||
- Remove the label from a pod:
|
- Remove the label from a pod:
|
||||||
|
|
||||||
`kubectl label pod {{pod_name}} {{key}}-`
|
`kubectl label {{[po|pod]}} {{pod_name}} {{key}}-`
|
||||||
|
|
Loading…
Add table
Reference in a new issue