LATEST VERSION: v1.1 - RELEASE NOTES
Pivotal Container Service v1.0

Installing the Kubernetes CLI

Page last updated:

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 Pivotal Container Service (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 Pivotal Container Service (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 Pivotal Container Service (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.

Create a pull request or raise an issue on the source for this page in GitHub