...
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=1v1.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:`pwd`$HOME/bin
chmod +x ~/bin/*kubectl