主机 |
系统版本 | 配置 | ip |
---|
Mater、Node,ansible | CentOS 7.2 | 4核8G | 172.16.6.44 |
master,Node | CentOS 7.2 | 4核8G | 172.16.6.45 |
Mater、Node | CentOS 7.2 | 4核8G | 172.16.6.92 |
1.这一步没做,实验也可以成功:
防火墙和网络设置,所有的主机都执行以下命令:
systemctl stop firewalld
modprobe br_netfilter
echo '1' > /proc/sys/net/bridge/bridge-nf-call-iptables
2.yum仓库 vim /etc/yum.repos.d/docker.repo
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
参考:
https://www.cnblogs.com/forezp/p/9852072.html
http://www.itmuch.com/docker/kubernetes-deploy-by-kubespray/