kubectl is a command-line tool for managing everything about your Kubernetes cluster.

The following set of commands can be used to install kubectl on your machine. You may need to change the version number below:

export K8S_VERSION=v1.2.0
mkdir ~/bin
curl -L "https://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/linux/amd64/kubectl" -o ~/bin/kubectl
export PATH=$PATH:$HOME/bin
chmod +x ~/bin/kubectl