snippetbashTip
kubectl version — Print the client and server version information for the current context. More information: <https://
Viewed 0 times
theservercommandclientandcliprintkubectl version
Problem
How to use the
kubectl version command: Print the client and server version information for the current context. More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_version/>.Solution
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 versionPrint the client version only for the current context:
kubectl version --clientOutput the client and server version information for the current context in JSON:
kubectl version {{[-o|--output]}} jsonOutput the client and server version information for the current context in YAML:
kubectl version {{[-o|--output]}} yamlCode Snippets
Print the client and server version information for the current context
kubectl versionPrint the client version only for the current context
kubectl version --clientOutput the client and server version information for the current context in JSON
kubectl version {{[-o|--output]}} jsonOutput the client and server version information for the current context in YAML
kubectl version {{[-o|--output]}} yamlContext
tldr-pages: common/kubectl version
Revisions (0)
No revisions yet.