Skip to content

Commit d534f2e

Browse files
authored
kubectl-label: add option placeholders (#17663)
1 parent 5d62421 commit d534f2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pages/common/kubectl-label.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
66
- Label a pod:
77

8-
`kubectl label pod {{pod_name}} {{key}}={{value}}`
8+
`kubectl label {{[po|pod]}} {{pod_name}} {{key}}={{value}}`
99

1010
- Update a pod label by overwriting the existing value:
1111

1212
`kubectl label --overwrite pod {{pod_name}} {{key}}={{value}}`
1313

1414
- Label all pods in the namespace:
1515

16-
`kubectl label pods --all {{key}}={{value}}`
16+
`kubectl label {{[po|pods]}} --all {{key}}={{value}}`
1717

1818
- Label a pod identified by the pod definition file:
1919

2020
`kubectl label {{[-f|--filename]}} {{pod_definition_file}} {{key}}={{value}}`
2121

2222
- Remove the label from a pod:
2323

24-
`kubectl label pod {{pod_name}} {{key}}-`
24+
`kubectl label {{[po|pod]}} {{pod_name}} {{key}}-`

0 commit comments

Comments
 (0)