In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the docker etcd + flannel how to achieve multi-computer interconnection, the article is very detailed, has a certain reference value, interested friends must read it!
Install etcd (abbreviated)
Use the command to configure the flannel segment (on the etcd server) > etcdctl mk / coreos.com/network/config'{"Network": "172.17.0.0 Network", "SubnetMin": "172.17.1.0", "SubnetMax": "172.17.254.0"}'
Install flannel > wget https://github.com/coreos/flannel/releases/download/v0.5.5/flannel-0.5.5-linux-amd64.tar.gz > tar zxvf flannel-x.tar.gz > cd flannel-x/flannel
Add Startup Service vi / usr/lib/systemd/system/flanneld.service
Add: Description=flannel [Service] ExecStart=/data/dev/vm/network/flannel-0.5.5/flanneld\-etcd-endpoints= http://{etcd_ip}:2379,http://{etcd_ip}:2379,http://{etcd_ip}:2379 [Install] WantedBy=multi-user.target systemctl start flanneld systemctl status flanneld
Check to see if OK
View IP: ip a displays the flannel0 network card
View etcdctl ls / coreos.com/network/subnets on ectd server to view flannel network segment
Integrate with docker. / mk-docker-opts.sh-I cat / run/docker_opts.env adds the displayed content to the docker startup vi / etc/sysconfig/docker Add: OPTIONS='--selinux-enabled-- bip= {corresponding parameter} / 24-- ip-masq=true-- mtu=1472' systemctl restart docker Ip a
Test: d1:docker run-ti centos bash d2:docker run-ti centos bash D1 / D2 mutual ping
The above is all the contents of the article "how to realize the interconnection of etcd and flannel in docker". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.