centos7安装kubectl
下载安装包
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
//下载最新版
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.17.0/bin/linux/amd64/kubectl
//下载指定版本
增加权限
chmod +x kubectl
移动到指定目录
mv ./kubectl /usr/local/bin/kubectl
查看版本是不是最新版
kubectl version --client