参考 https://www.jianshu.com/p/70efa1b853f5
192.168.85.14 master
192.168.85.16 node1
192.168.85.17 node2
curl -o CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=http://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=0
repo_gpgcheck=0
gpgkey=http://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg
http://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
EOF
curl -o docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo
yum clean all
# yum makecache
# yum repolist
https://www.vultr.com/docs/deploy-kubernetes-with-kubeadm-on-centos-7
systemctl stop firewalld
https://yq.aliyun.com/articles/656601
systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
sed -i 's/enforcing/disabled/' /etc/selinux/config
swapoff -a