mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-16 01:00:12 +00:00
Update cheatsheets
This commit is contained in:
@@ -10,15 +10,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Label a pod:
|
||||
|
||||
`kubectl label {{[po|pod]}} {{pod_name}} {{key}}={{value}}`
|
||||
`kubectl label {{[po|pods]}} {{pod_name}} {{key}}={{value}}`
|
||||
|
||||
- Update a pod label by overwriting the existing value:
|
||||
|
||||
`kubectl label --overwrite pod {{pod_name}} {{key}}={{value}}`
|
||||
`kubectl label {{[po|pods]}} {{pod_name}} {{key}}={{value}} --overwrite`
|
||||
|
||||
- Label all pods in the namespace:
|
||||
|
||||
`kubectl label {{[po|pods]}} --all {{key}}={{value}}`
|
||||
`kubectl label {{[po|pods]}} {{key}}={{value}} --all`
|
||||
|
||||
- Label a pod identified by the pod definition file:
|
||||
|
||||
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Remove the label from a pod:
|
||||
|
||||
`kubectl label {{[po|pod]}} {{pod_name}} {{key}}-`
|
||||
`kubectl label {{[po|pods]}} {{pod_name}} {{key}}-`
|
||||
|
||||
Reference in New Issue
Block a user