You can determine the Kubernetes version by using the kubectl version command. This command provides both the client and server version information. Here’s how you can do it:
-
To get both client and server version information:
kubectl version -
To get only the client version information:
kubectl version --client
This will output the version details, including the Kubernetes version, Git commit hash, and build date for both the client and server.
