Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-08 00:19:16 +00:00
parent 4102fec4f8
commit 52f5647220
45 changed files with 1002 additions and 38 deletions

View File

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