美文网首页
flanneld网络组件安装

flanneld网络组件安装

作者: wuzsheng | 来源:发表于2020-02-23 11:59 被阅读0次

解压flannel包

tar xf flannel-v0.11.0-linux-amd64.tar.gz 
mv flanneld mk-docker-opts.sh /usr/bin/
chmod +x /usr/bin/flanneld
chmod +x /usr/bin/mk-docker-opts.sh

配置flanneld.service文件

cat> /etc/systemd/system/flanneld.service<<EOF
[Unit]
Description=Flanneld
Documentation=https://github.com/coreos/flannel
After=network.target
Before=docker.service

[Service]
User=root
ExecStartPost=/usr/bin/mk-docker-opts.sh
ExecStart=/usr/bin/flanneld \
--etcd-endpoints=http://10.0.102.215:2379 \
--iface=10.0.102.215 \  
--ip-masq=true \
--etcd-prefix=/coreos.com/network
Restart=on-failure
Type=notify
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF

启动

systemctl enable flanneld
systemctl restart flanneld

相关文章

网友评论

      本文标题:flanneld网络组件安装

      本文链接:https://www.haomeiwen.com/subject/enzdqhtx.html