参考:https://blog.csdn.net/qq_25611295/article/details/81912295
环境规划
IP:10.50.182.65-67
VIP:10.50.182.69
centos7
安装Docker
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce
cat << EOF > /etc/docker/daemon.json
{
"registry-mirrors": [ "https://registry.docker-cn.com"]
}
EOF
systemctl start docker
systemctl enable docker
#创建k8s的目录:
mkdir -p /opt/kubernetes/{bin,cfg,ssl}