1 配置安装源
修改文件**/etc/yum.repos.d/kubernetes.repo**内容如下
1 | [kubernetes] |
2 禁用selinux
1 | setenforce 0 |
3 安装kubelet和kubeadm
1 | yum install -y kubelet kubeadm |
4 启用kubelet
1 | systemctl enable kubelet && systemctl start kubelet |
参考:
修改文件**/etc/yum.repos.d/kubernetes.repo**内容如下
1 | [kubernetes] |
1 | setenforce 0 |
1 | yum install -y kubelet kubeadm |
1 | systemctl enable kubelet && systemctl start kubelet |
参考: