LinuxCommandLibrary

kubectl-version

shows client and server versions

TLDR

Show versions

$ kubectl version
copy
Client version only
$ kubectl version --client
copy
Output as JSON
$ kubectl version -o json
copy
Output as YAML
$ kubectl version -o yaml
copy
Short format
$ kubectl version --short
copy

SYNOPSIS

kubectl version [options]

DESCRIPTION

kubectl version shows client and server versions. It displays the kubectl and Kubernetes API server versions.
The command verifies version compatibility. Client and server should be within one minor version.

PARAMETERS

--client

Show client version only.
-o FORMAT
Output format (json, yaml).
--short
Short output format.
--help
Display help information.

CAVEATS

Subcommand of kubectl. Server version needs cluster access. Version skew matters.

HISTORY

kubectl version provides version checking for Kubernetes compatibility verification.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community