kubectl

普通安装

第一步、添加源,更新缓存索引 支持https传送

apt update && apt install -y apt-transport-https 

添加访问公钥

curl https://mirrors.aliyun.com/kubernetes/apt/doc/apt-key.gpg | apt-key add - 

添加源

cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb https://mirrors.aliyun.com/kubernetes/apt/ kubernetes-xenial main
EOF

更新缓存索引

apt update

查看kubectl可用版本

apt-cache madison kubeadm kubelet kubectl

第二步、进行安装

第三步、开机自启

安装kubectl

安装helm

did you specify the right host or port?解决

最后更新于