Flannel 安装
简介
安装
安装依赖
- ETCD ETCD
获取安装包
- 从外网获取:flannel-v0.11.0-linux-amd64.tar.gz
解压安装包
# mkdir /opt/flannel
# mv ./flannel-v0.11.0-linux-amd64.tar.gz /opt/flannel
# tar -zxvf flannel-v0.11.0-linux-amd64.tar.gz
启动flannel并连接etcd为docker分配地址
cd /opt/flannel
./flanneld -etcd-endpoints http://10.243.177.235:2379,http://10.243.177.235:2379,http://10.243.177.236:2379 -etcd-prefix /snbcloud/network1 &
sleep 3
./mk-docker-opt.sh -k DOCKER_NETWORK_OPTIONS -d /run/flannel/docker
备注: /snbcloud/network1 需要提前创建