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 Tanzu Kubernetes Grid Integrated Edition.
- 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 Tanzu Kubernetes Grid Integrated Edition.
- 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 Tanzu Kubernetes Grid Integrated Edition.
- 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
.