阿里云镜像安装kubeadm和kubernetes

语言: CN / TW / HK

1. 添加安装源配置
/etc/yum.repos.d/kubernetes.repo

[kubernetes]
name=Kubernetes
baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg

2. 安装 

yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes

3. 启动

systemctl enable kubelet && systemctl start kubelet