How to get server version?

To get the server version of Kubernetes, you can use the kubectl command-line tool. Here’s how to do it:

  1. Open your terminal.

  2. Run the following command:

    kubectl version --output=json

This command will return the client and server version information in JSON format. Look for the serverVersion section in the output to find the server version details.

If you prefer a simpler output, you can use:

kubectl version

This will display both the client and server versions in a more human-readable format. The server version will be listed under the "Server Version" section.

Example output:

Client Version: v1.26.0
Server Version: v1.26.0

Make sure you have the necessary permissions and that your Kubernetes cluster is accessible.

0 Comments

no data
Be the first to share your comment!