NeoKylin-Server-5.0离线部署etcd+flannel集群,实现docker容器跨主机网络通信

{"type":"doc","content":[{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"主机准备","attrs":{}}]},{"type":"codeblock","attrs":{"lang":"shell"},"content":[{"type":"text","text":"# etcd集群部署在m1~m3,而flannel则需每一台主机都安装部署\n# m1~m3\n192.168.136.21 m1\n192.168.136.22 m2\n192.168.136.23 m3\n# n1~n3\n192.168.136.26 n1\n192.168.136.27 n2\n192.168.136.28 n3","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"安装离线rpm包","attrs":{}}]},{"type":"paragraph","attrs":{"indent":1,"number":0,"align":null,"origin":null},"content":[{"type":"codeinline","content":[{"type":"text","text":"cd /home/rpm && rpm -ivh *.rpm --replacefiles --force --nodeps","attrs":{}}],"attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"启动Docker,并通过load导入image镜像","attrs":{}}]},{"type":"paragraph","attrs":{"indent":1,"number":0,"align":null,"origin":null},"content":[{"type":"codeinline","content":[{"type":"text","text":"systemctl enable docker && systemctl start docker","attrs":{}}],"attrs":{}}]},{"type":"paragraph","attrs":{"indent":1,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":1,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"在m1、m2、m3执行","attrs":{}}]},{"type":"paragraph","attrs":{"indent":1,"number":0,"align":null,"origin":null},"content":[{"type":"codeinline","content":[{"type":"text","text":"cd /home/imgs && docker load
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章