mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-21 18:02:26 +00:00
Update cheatsheets
This commit is contained in:
25
tldr/kubectl-version
Normal file
25
tldr/kubectl-version
Normal 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`
|
||||
Reference in New Issue
Block a user