kubectl-version
Print the client and server version information for the current context. tldr-pages
On several platforms
Several platforms
Print the client and server version information for the current context
kubectl versionIdentifyPrint the client version only for the current context
kubectl version --clientIdentify--clientIf true, shows client version only (no server required). kubectl referenceOutput the client and server version information for the current context in JSON
kubectl version --output jsonIdentify--outputOne of 'yaml' or 'json'. kubectl referenceOutput the client and server version information for the current context in YAML
kubectl version --output yamlIdentify--outputOne of 'yaml' or 'json'. kubectl reference