1、For example, to download version v1.9.0 on Linux, type:
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.9.0/bin/linux/amd64/kubectl
2、Make the kubectl binary executable
chmod +x ./kubectl
3、Move the binary in to your PATH.
sudo mv ./kubectl /usr/local/bin/kubectl
4、写进配置
mkdir -p ~/.kube
cp conf/admin.kubeconfig ~/.kube/config