Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-07 00:19:24 +00:00
parent 3e6fa5fca1
commit 4102fec4f8
26 changed files with 610 additions and 8 deletions

25
tldr/kubectl-version Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# kubectl version
> Print the client and server version information for the current context.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_version>.
- Print the client and server version information for the current context:
`kubectl version`
- Print the client version only for the current context:
`kubectl version --client`
- Output the client and server version information for the current context in JSON:
`kubectl version {{[-o|--output]}} json`
- Output the client and server version information for the current context in YAML:
`kubectl version {{[-o|--output]}} yaml`