c语言sscanf函数的用法是什么
244
2022-11-13
K8S 1.9.0二进制包部署(四)
5、flannel
cp flanneld /usr/bin/chmod 755 /usr/bin/flanneldmkdir -p /app/flannel/conf/
vi /usr/lib/systemd/system/flanneld.service[Unit]Description=flanneld overlay address etcd agentAfter=network.targetBefore=docker.service[Service]Type=notifyEnvironmentFile=/app/flannel/conf/flanneldExecStart=/usr/bin/flanneld -etcd-endpoints=${FLANNEL_ETCD} ${FLANNEL_OPTIONS}[Install]RequiredBy=docker.serviceWantedBy=multi-user.target
vi /app/flannel/conf/flanneldFLANNEL_ETCD="#此处输入集群master地址FLANNEL_ETCD_KEY="/coreos.com/network"FLANNEL_OPTIONS="-iface=ens32" #此处写网卡
以下两句只有master执行etcdctl set /coreos.com/network/config '{"Network":"10.0.0.0/16","SubnetMin":"10.0.1.0","SubnetMax":"10.0.20.0"}' etcdctl get /coreos.com/network/config
systemctl daemon-reloadsystemctl enable flanneld.servicesystemctl start flanneld.servicesystemctl status flanneld.service
./mk-docker-opts.sh -icat /run/flannel/subnet.env cat /run/docker_opts.envsource /run/flannel/subnet.env
vim /run/flannel/subnet.env 把--ip-masq=false 改成 --ip-masq=true
systemctl daemon-reloadsystemctl restart dockeretcdctl ls /coreos.com/network/subnetsetcdctl get /coreos.com/network/subnets/10.0.8.0-24
参考http://blog.csdn.net/liukuan73/article/details/54897594参考https://hi-linux.com/posts/30481.html
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~