This topic describes how to install the Kubernetes Command Line Interface (kubectl).

To install kubectl, follow the procedures for your operating system to download kubectl from VMware Tanzu Network. Binaries are only provided for 64-bit architectures.

Mac OS X

  1. Navigate to VMware Tanzu Network and log in.
  2. Click VMware Tanzu Kubernetes Grid Integrated Edition.
  3. Click Kubectl CLIs.
  4. Click kubectl CLI - Mac to download the kubectl binary.
  5. Rename the downloaded binary to kubectl.
  6. On the command line, run the following command to make the kubectl binary executable:
    $ chmod +x kubectl
  7. Move the binary into your PATH. For example:
    $ mv kubectl /usr/local/bin/kubectl

Linux

  1. Navigate to VMware Tanzu Network and log in.
  2. Click VMware Tanzu Kubernetes Grid Integrated Edition.
  3. Click Kubectl CLIs.
  4. Click kubectl CLI - Linux to download the kubectl binary.
  5. Rename the downloaded binary to kubectl.
  6. On the command line, run the following command to make the kubectl binary executable:
    $ chmod +x kubectl
  7. Move the binary into your PATH. For example:
    $ mv kubectl /usr/local/bin/kubectl

Windows

  1. Navigate to VMware Tanzu Network and log in.
  2. Click VMware Tanzu Kubernetes Grid Integrated Edition.
  3. Click Kubectl CLIs.
  4. Click kubectl CLI - Windows to download the kubectl executable file.
  5. Rename the downloaded binary to kubectl.exe.
  6. Move the binary into your PATH.

check-circle-line exclamation-circle-line close-line
Scroll to top icon