前言
略
安装
- 配置阿里云的yum源(由于使用google的yum源出现不能访问的情况)
]# cat > /etc/yum.repos.d/kubernetes.repo <<-EOF
[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
EOF
]# yum install -y kubelet kubeadm kubectl
]# systemctl enable kubelet && systemctl start kubelet
结语
… …