Installing the Kubernetes CLI
Page last updated:
Warning: VMware Enterprise PKS v1.7 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 VMware Tanzu Network. Binaries are only provided for 64-bit architectures.
Mac OS X
- Navigate to VMware Tanzu Network and log in.
- Click VMware Enterprise PKS.
- Click Kubectl CLIs.
- Click kubectl CLI - Mac to download the kubectl binary.
- Rename the downloaded binary to
kubectl
. - On the command line, run the following command to make the kubectl binary executable:
$ chmod +x kubectl
- Move the binary into your
PATH
. For example:$ mv kubectl /usr/local/bin/kubectl
Linux
- Navigate to VMware Tanzu Network and log in.
- Click VMware Enterprise PKS.
- Click Kubectl CLIs.
- Click kubectl CLI - Linux to download the kubectl binary.
- Rename the downloaded binary to
kubectl
. - On the command line, run the following command to make the kubectl binary executable:
$ chmod +x kubectl
- Move the binary into your
PATH
. For example:$ mv kubectl /usr/local/bin/kubectl
Windows
- Navigate to VMware Tanzu Network and log in.
- Click VMware Enterprise PKS.
- Click Kubectl CLIs.
- Click kubectl CLI - Windows to download the kubectl executable file.
- Rename the downloaded binary to
kubectl.exe
. - Move the binary into your
PATH
.
Please send any feedback you have to pks-feedback@pivotal.io.