Kubernetes客户端工具kubectl 的安装
kubectl是Kubernetes集群的命令行工具,通过kubectl能够对集群本身进行管理,并能够在集群上进行容器化应用的安装部署。``` bashcd /opt/k8s/workwget https://dl.k8s.io/v1.14.2/kubernetes-client-linux-amd64.tar.gztar -xzvf kubernetes-client-linux-a...
·
kubectl是Kubernetes集群的命令行工具,通过kubectl能够对集群本身进行管理,并能够在集群上进行容器化应用的安装部署。
``` bash
cd /opt/k8s/work
wget https://dl.k8s.io/v1.14.2/kubernetes-client-linux-amd64.tar.gz
tar -xzvf kubernetes-client-linux-amd64.tar.gz
```
从dl.k8s.io下载不了的,还有另一个方法:
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
参考:
https://github.com/opsnull/follow-me-install-kubernetes-cluster
https://www.kubernetes.org.cn/installkubectl
查看下载了哪个版本:
[root@zhangjun-k8s02 bin]# ./kubectl version
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T19:18:23Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?
[root@zhangjun-k8s02 bin]#
稳定版v1.16.2
更多推荐
已为社区贡献4条内容
所有评论(0)