vim /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/
enabled=1
gpgcheck=0
repo_gpgcheck=0
gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
安装kubeadm, 会默认安装 kubectl ,无需要单独安装kubectl.
yum list kubeadm --showduplicates | sort -r
yum install -y kubeadm-1.13.10-0
yum install -y kubelet-1.13.10-0
systemctl enable kubelet
systemctl start kubelet