3.flannel服务安装

Master节点:

yum -y install flannel
sed -i 's#FLANNEL_ETCD_ENDPOINTS="http://127.0.0.1:2379"#FLANNEL_ETCD_ENDPOINTS="http://etcd:2379"#g' /etc/sysconfig/flanneld
etcdctl mk /atomic.io/network/config '{ "Network": "10.0.0.0/16" }'
systemctl start flanneld.service
systemctl enable flanneld.service

 

Node节点:

yum -y install flannel
sed -i 's#FLANNEL_ETCD_ENDPOINTS="http://127.0.0.1:2379"#FLANNEL_ETCD_ENDPOINTS="http://etcd:2379"#g' /etc/sysconfig/flanneld
systemctl start flanneld.service
systemctl enable flanneld.service

  

猜你喜欢

转载自www.cnblogs.com/sdrbg/p/11386525.html