mirror of https://github.com/CrimsonTome/tldr.git
kubectl label: update page (#12833)
parent
a476479744
commit
7a5873aa7b
|
@ -9,15 +9,15 @@
|
|||
|
||||
- Update a pod label by overwriting the existing value:
|
||||
|
||||
`kubectl label --overwrite {{pod_name}} {{key}}={{value}}`
|
||||
`kubectl label --overwrite pod {{pod_name}} {{key}}={{value}}`
|
||||
|
||||
- Label all pods in the namespace:
|
||||
|
||||
`kubectl label pods --all {{key}}={{value}}`
|
||||
|
||||
- Label pod identified by pod definition file:
|
||||
- Label a pod identified by the pod definition file:
|
||||
|
||||
`kubectl label -f {{pod_defination_file}} {{key}}={{value}}`
|
||||
`kubectl label -f {{pod_definition_file}} {{key}}={{value}}`
|
||||
|
||||
- Remove the label from a pod:
|
||||
|
||||
|
|
Loading…
Reference in New Issue