1
0
Fork 0
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:
Managor 2025-08-16 21:09:54 +03:00 committed by GitHub
parent 5d62421af1
commit d534f2e6f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}}-`