Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Etcd add and delete node operations. Non-K8s case

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

In the case of non-K8s, maintain etcd, add and delete nodes manually

Note: 4001 is the port that provides services, and 7001 is the excuse for interaction between nodes.

/ export/App/etcd-v3.3.12/etcdctl-- endpoints= "http://172.28.178.53:4001,http://172.28.178.70:4001,http://172.28.178.34:4001" member add etcd2 http://11.5.104.2:7001

/ export/App/etcd-v3.3.12/etcdctl-- endpoints= "http://172.28.178.53:4001,http://172.28.178.70:4001,http://172.28.178.34:4001" member remove 82fdb722eb9d638b (id in remove is the id shown in meber list,)

View the node:

/ export/App/etcd-v3.3.12/etcdctl-- endpoints= "http://172.28.178.53:4001,http://172.28.178.70:4001,http://172.28.178.34:4001" member list

26696069f6492b5e: name=etcd53 peerURLs= http://172.28.178.53:7001 clientURLs= http://172.28.178.53:4001 isLeader=false

83123c99177d962b: name=etcd9 peerURLs= http://11.5.103.9:7001 clientURLs= http://11.5.103.9:4001 isLeader=false

83d86e01a34a6415: name=etcd2 peerURLs= http://11.5.104.2:7001 clientURLs= http://11.5.104.2:4001 isLeader=false

Cea02eff3b4e6b62: name=etcd70 peerURLs= http://172.28.178.70:7001 clientURLs= http://172.28.178.70:4001 isLeader=true

Eb3de7b5e5f2cdca: name=etcd34 peerURLs= http://172.28.178.34:7001 clientURLs= http://172.28.178.34:4001 isLeader=false

View node status:

[root@A01-R04-I178-34-7254361] # / export/App/etcd-v3.3.12/etcdctl-- endpoints= "http://172.28.178.53:4001,http://172.28.178.70:4001,http://172.28.178.34:4001" cluster-health

Member 26696069f6492b5e is healthy: got healthy result from http://172.28.178.53:4001

Member 83123c99177d962b is healthy: got healthy result from http://11.5.103.9:4001

Member 83d86e01a34a6415 is healthy: got healthy result from http://11.5.104.2:4001

Member cea02eff3b4e6b62 is healthy: got healthy result from http://172.28.178.70:4001

Member eb3de7b5e5f2cdca is healthy: got healthy result from http://172.28.178.34:4001

Cluster is healthy

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report