标签:10.1 false etcd -- 节点 2379 https leader
etcd查看集群leader的节点
- 安装etcdctl
- 具体命令如下
<root@SYS-OPS-ETCD01 ~># etcdctl -w table --cert /etc/kubernetes/pki/etcd/peer.crt --key /etc/kubernetes/pki/etcd/peer.key --cacert /etc/kubernetes/pki/etcd/ca.crt --endpoints https://10.1.0.182:2379 endpoint status --cluster +-------------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+ | ENDPOINT | ID | VERSION | DB SIZE | IS LEADER | IS LEARNER | RAFT TERM | RAFT INDEX | RAFT APPLIED INDEX | ERRORS | +-------------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+ | https://10.1.0.181:2379 | 2c8cf085f70a48f7 | 3.4.3 | 413 MB | false | false | 68 | 4106191951 | 4106191951 | | | https://10.1.0.180:2379 | 6d8112d8e415d2b5 | 3.4.3 | 413 MB | false | false | 68 | 4106191955 | 4106191954 | | | https://10.1.0.182:2379 | a8a882b8d519b039 | 3.4.3 | 413 MB | true | false | 68 | 4106191957 | 4106191957 | | +-------------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
- 查看节点列表
<root@SYS-OPS-ETCD01 ~># etcdctl -w table --cert /etc/kubernetes/pki/etcd/peer.crt --key /etc/kubernetes/pki/etcd/peer.key --cacert /etc/kubernetes/pki/etcd/ca.crt --endpoints https://10.1.0.182:2379 member list +------------------+---------+--------+-------------------------+-------------------------+------------+ | ID | STATUS | NAME | PEER ADDRS | CLIENT ADDRS | IS LEARNER | +------------------+---------+--------+-------------------------+-------------------------+------------+ | 2c8cf085f70a48f7 | started | infra1 | https://10.1.0.181:2380 | https://10.1.0.181:2379 | false | | 6d8112d8e415d2b5 | started | infra0 | https://10.1.0.180:2380 | https://10.1.0.180:2379 | false | | a8a882b8d519b039 | started | infra2 | https://10.1.0.182:2380 | https://10.1.0.182:2379 | false | +------------------+---------+--------+-------------------------+-------------------------+------------+
标签:10.1,false,etcd,--,节点,2379,https,leader 来源: https://www.cnblogs.com/apink/p/15683226.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。