Install Kubectl by downloading precompiled binaries.

Install kubectl binary with curl on Linux / macOS

  1. Download the latest release with the command:

    curl -LO "$(curl -s"

    To download a specific version, replace the $(curl -s portion of the command with the specific version.

    For example, to download version v1.19.0 on Linux, type:

    curl -LO
  2. Make the kubectl binary executable.

    chmod +x ./kubectl
  3. Move the binary in to your PATH.

    sudo mv ./kubectl /usr/local/bin/kubectl
  4. Test to ensure the version you installed is up-to-date:

    kubectl version --client

Last modified September 23, 2020: docs update (b46eb86)