We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d62421 commit d534f2eCopy full SHA for d534f2e
pages/common/kubectl-label.md
@@ -5,20 +5,20 @@
5
6
- Label a pod:
7
8
-`kubectl label pod {{pod_name}} {{key}}={{value}}`
+`kubectl label {{[po|pod]}} {{pod_name}} {{key}}={{value}}`
9
10
- Update a pod label by overwriting the existing value:
11
12
`kubectl label --overwrite pod {{pod_name}} {{key}}={{value}}`
13
14
- Label all pods in the namespace:
15
16
-`kubectl label pods --all {{key}}={{value}}`
+`kubectl label {{[po|pods]}} --all {{key}}={{value}}`
17
18
- Label a pod identified by the pod definition file:
19
20
`kubectl label {{[-f|--filename]}} {{pod_definition_file}} {{key}}={{value}}`
21
22
- Remove the label from a pod:
23
24
-`kubectl label pod {{pod_name}} {{key}}-`
+`kubectl label {{[po|pod]}} {{pod_name}} {{key}}-`
0 commit comments