kubectl version

Category: Kubernetes & Containers

kubectl version

Print client and server Kubernetes versions

Shows the kubectl client version and the server version of the cluster your kubeconfig points at (kubeconfig = the file with cluster addresses and credentials, usually ~/.kube/config). Run kubectl version --output=yaml for full build info. Pair with kubectl cluster-info to confirm you are talking to the intended cluster.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.