kubectl version
all
Print the client and server version information for the current context.
More info →Options (1)
-o, --outputbooleanOutput the client and server version information for the current context in JSON
Example:
kubectl version {{[-o|--output]}} jsonExamples (4)
Print the client and server version information for the current context
Print 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] yamlmade by @shridhargupta | data from tldr-pages