查看所有版本:

https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG.md

下载指定版本:

curl -O https://dl.k8s.io/v1.14.0/kubernetes-client-linux-amd64.tar.gz

安装:

tar -zxvf kubernetes-client-linux-amd64.tar.gz
chmod +x ./kubernetes/client/bin/kubectl
sudo mv ./kubernetes/client/bin/kubectl /usr/local/bin/kubectl
sudo ln -s /usr/local/bin/kubectl /usr/bin/kubectl

配置链接集群(需先获取集群配置文件admin.conf)

mkdir -p $HOME/.kube
sudo mv admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

测试:

kubectl version

转载于:https://www.cnblogs.com/hackyo/p/10670046.html

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐