Skip to Content

Install the Kubernetes Command Line Tool

0 %
Install the Kubernetes Command Line Tool

Install the Kubernetes Command Line Tool

October 8, 2020
Created by
October 8, 2020
Download and install the Kubernetes command line tool kubectl which allows access to the SAP Cloud Platform Kyma Runtime via the command line.

You will learn

  • How to download the Kubernetes command line tool kubectl.
  • How to install kubectl and connect it to a Kyma Runtime.
  • How to explore a few basic kubectl commands.

Step 1: Download and install kubectl
  1. Download the latest command line tool kubectl from the Kubernetes web site. Use the following URL:

  2. On the Kubernetes website, follow the instructions listed for your operating system, for example, Install kubectl on macOS.

Log on to answer question
Step 2: Test the kubectl installation
  1. Open a command prompt on your computer.

    In Windows, you can search in the start menu for the application cmd or command prompt.

    On a Mac, use spotlight to find the application “terminal”.

    On Linux/Unix, you know how this works, just open your favorite command shell.

  2. Test the kubectl command line tool to make sure it is installed correctly by running the following command in your CLI:

    kubectl version --client

This should return a list of version properties, for example.

'Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.0", GitCommit:"9e991415386e4cf155a24b1da15becaa390438d8", GitTreeState:"clean", BuildDate:"2020-03-26T06:16:15Z", GoVersion:"go1.14", Compiler:"gc", Platform:"darwin/amd64"}
Log on to answer question
Step 3: Download the Kyma Runtime Kubeconfig
  1. Navigate to the Console UI of your Kyma runtime.

  2. Log onto the Kyma runtime.

  3. At the top-right of the Kyma runtime window ,choose the user information dropdown.

  4. Choose the option Get Kubeconfig to download the file.

Log on to answer question
Step 4: Set the KUBECONFIG environment variable
  1. Open a command line prompt on your computer. In the command line screen, type in the following:


    Replace the <KUBECONFIG_FILE_PATH> section with the file path of the Kubeconfig you downloaded in the previous step.

  2. Test the configuration by running:

    kubectl config get-contexts

    This should return a response similar to:

    * OIDCUser
  3. You are now set up to use the Kyma runtime on SAP Cloud Platform.

For more information on kubectl, visit the Kubernetes overview and kubectl-commands websites.

What is the kubeconfig file used for?

Next Steps

Back to top