$ etcdctl --endpoints=http://localhost:22379 member list 8211f1d0f64f3269, started, infra1, http://127.0.0.1:12380, http://127.0.0.1:12379, false 91bc3c398fb3c146, started, infra2, http://127.0.0.1:22380, http://127.0.0.1:22379, false fd422379fda50e48, started, infra3, http:/...
然后,连接到etcd实例(endpoints为上面所显示的地址参数:advertise-client-urls): sudo etcdctl --endpoints https://127.0.0.1:2379 --cert-file=/etc/kubernetes/pki/etcd/server.crt --key-file=/etc/kubernetes/pki/etcd/server.key --ca-file=/etc/kubernetes/pki/etcd/ca.crt member list 1. 注意:因为k...
export PATH=/usr/local/etcd/bin/:$PATH(多路径之间用:分隔) export ETCDCTL_API=2 正常可以看到 [root@etcd5~]# etcdctl member list71b9fac8482ec139,started,etcd-1,http://10.1.1.5:2380,http://10.1.1.5:237989d4b75907acdf9a,started,etcd-3,http://10.1.1.7:2380,http://10.1.1.7:2379b22a0...
[root@k8s-master01 ssl]# etcdctl member list client: etcd cluster is unavailable or misconfigured; error #0: x509: certificate signed by unknown authority ; error #1: x509: certificate signed by unknown authority ; error #2: x509: certificate signed by unknown authority etcdctl工具是一个可以对...
false [root@etcd-1 ~]# [root@etcd-1 ~]# etcdctl member remove 9f9b71960dcb7180 ##通过节点的id将节点删除 Member 9f9b71960dcb7180 removed from cluster 8356fccf618a037f [root@etcd-1 ~]# etcdctl member list 916281517eb238d9, started, etcd2, http://172.18.101.40:2380, http://172.18...
然后启动 etcd 服务端:systemctl start etcd,每个节点都启动一遍,然后查看 etcd 集群:etcdctl member list。 可以看到节点启动成功了,并且 satori-001 是 Leader。然后来测试一下在外部通过 Python 能不能访问: importetcd3# 连接到集群中任何一个节点都是可以的# 默认访问 2379 端口,如果你用的云服务器,别忘记...
$ etcdctl member list 8211f1d0f64f3269, started, infra1, http://127.0.0.1:12380, http://127.0.0.1:2379, false 91bc3c398fb3c146, started, infra2, http://127.0.0.1:22380, http://127.0.0.1:22379, false fd422379fda50e48, started, infra3, http://127.0.0.1:32380, http://127.0.0.1...
踢出命令为(数字为 etcdctl member list 查询出的ID): etct_serch member remove 97c1c1003e0d4bf 2, 将正常的etcd节点的配置文件,程序拷贝到19节点(/opt/etcd目录下有etcd集群证书和两个可执行文件以及主配置文件,配置文件一哈要修改): scp -r /opt/etcd 192.168.217.19:/opt/scp /usr/lib/systemd/syst...
$ /opt/etcd/bin/etcdctl member list # 结果如下: 40e2ac06ca1674a7, started, etcd3, http://192.168.202.130:2380, http://etcd3.blueskykong.com:2379, false c532c5cedfe84d3c, started, etcd1, http://192.168.202.128:2380, http://etcd1.blueskykong.com:2379, false db75d3022049742a, sta...
再次查看 etcd 集群成员列表 $ etcdctl member list 8e41efd8164c6e3d, started, k8s-master-2-12, https://192.168.2.12:2380, https://192.168.2.12:2379, false a61d0bd53c1cbcb6, started, k8s-master-2-13, https://192.168.2.13:2380, https://192.168.2.13:2379, false ## 退出容器 $ exit ...