etcd,flannel,docker relationship---and k8s

journalctl -xe


voidcn.com/article/p-qufvdmpq-bqn.html

etcd

more etcd.conf
ETCD_NAME=default
ETCD_DATA_DIR="/var/lib/etcd/default.etcd"
ETCD_LISTEN_CLIENT_URLS="http://0.0.0.0:2379"
ETCD_ADVERTISE_CLIENT_URLS="http://0.0.0.0:2379"


flannel

─16199 /usr/bin/flanneld -etcd-endpoints=http://127.0.0.1:2379 -etcd-prefix=/flannel/network


etcdctl mkdir /flannel/network
etcdctl mk /flannel/network/config "{ \"Network\": \"172.30.0.0/16\", \"SubnetLen\": 24, \"Backend\": { \"Type\": \"vxlan\" } }"

猜你喜欢

转载自www.cnblogs.com/SZLLQ2000/p/12074517.html