支持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
apt install kubectl kubelet kubeadm -y
systemctl enable kubelet