Installing the Kubernetes Command Line Client

The Kubernetes command line client, kubectl, enables users to deploy applications on Kubernetes. Though Helm includes the Kubernetes API, the local host needs the kubectl client to access Kubernetes clusters and display status and resource details.

The Kubernetes client that you install depends on your operating system or the vendor that hosts your Kubernetes cluster. For example, if the Google Cloud Platform hosts your environment, you can download kubectl as part of the Google Cloud SDK. For instructions, see Download as part of the Google Cloud SDK in the Kubernetes documentation. For more information and instructions for other operating systems, see Install and Set Up kubectl in the Kubernetes documentation.

This topic provides an example installation that downloads and configures the kubectl binary on a Linux operating system.

  1. Run the following cURL command to download the kubectl binary:
    curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
  2. Run the following command to make the binary executable:
    chmod +x ./kubectl
  3. Run the following command to move the binary to your PATH:
    sudo mv ./kubectl /usr/local/bin/kubectl

    To confirm that the binary is installed and that you can run kubectl commands, run the following command to display the client version:

    kubectl version --client

Now that the Kubernetes CLI is installed, you can use it to set up access to the Kubernetes cluster to use for deploying AnzoGraph. See Configuring Access to a Kubernetes Cluster for next steps.

Related Topics