1、写入分配的子网段到etcd,供flanneld使用

[root@linux-node1 ssl]# pwd
/opt/etcd/ssl
[root@linux-node1 ssl]# /opt/etcd/bin/etcdctl --ca-file=ca.pem --cert-file=server.pem --key-file=server-key.pem https://192.168.56.11:2379,https://192.168.56.12:2379,https://192.168.56.13:2379 set /coreos.com/network/config '{ "Network": "172.17.0.0/16", "Backend": {"Type": "vxlan"}}'
No help topic for 'https://192.168.56.11:2379,https://192.168.56.12:2379,https://192.168.56.13:2379'
[root@linux-node1 ssl]# /opt/etcd/bin/etcdctl --ca-file=ca.pem --cert-file=server.pem --key-file=server-key.pem --endpoints="https://192.168.56.11:2379,https://192.168.56.12:2379,https://192.168.56.13:2379" set /coreos.com/network/config '{ "Network": "172.17.0.0/16", "Backend": {"Type": "vxlan"}}'
{ "Network": "172.17.0.0/16", "Backend": {"Type": "vxlan"}}
[root@linux-node1 ssl]# /opt/etcd/bin/etcdctl --ca-file=ca.pem --cert-file=server.pem --key-file=server-key.pem --endpoints="https://192.168.56.11:2379,https://192.168.56.12:2379,https://192.168.56.13:2379" get /coreos.com/network/config 
{ "Network": "172.17.0.0/16", "Backend": {"Type": "vxlan"}}
写入etcd数据库

相关文章:

  • 2022-02-09
  • 2021-10-23
  • 2021-07-30
猜你喜欢
  • 2022-02-22
  • 2021-06-09
  • 2021-06-04
  • 2021-08-10
  • 2021-06-15
相关资源
相似解决方案