流觞区直

导航

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

  

posted on 2019-08-21 01:42  流觞区直  阅读(168)  评论(0编辑  收藏  举报