Installing the Kubernetes CLI

Page last updated:

Warning: VMware Enterprise PKS v1.6 is no longer supported because it has reached the End of General Support (EOGS) phase as defined by the Support Lifecycle Policy. To stay up to date with the latest software and security updates, upgrade to a supported version.

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 Pivotal Network. Binaries are only provided for 64-bit architectures.

Mac OS X

  1. Navigate to Pivotal Network and log in.
  2. Click VMware Enterprise PKS.
  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 Pivotal Network and log in.
  2. Click VMware Enterprise PKS.
  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 Pivotal Network and log in.
  2. Click VMware Enterprise PKS.
  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.

Please send any feedback you have to pks-feedback@pivotal.io.