3.flannel服务安装

北城余情 提交于 2019-11-28 01:56:23

Master节点:

yum 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 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

  

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!