kubectl label: update page (#12833)

pull/28/head
Zhizhen He 2024-05-26 00:06:04 +08:00 committed by GitHub
parent a476479744
commit 7a5873aa7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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: