Print the kubectl client and Kubernetes API server versions.
Section: Setup, Contexts, and Cluster Info
Show client and server version
bash
bash
kubectl versionExplanation
Print the kubectl client and Kubernetes API server versions.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Setup, Contexts, and Cluster Info