您好,登錄后才能下訂單哦!
非k8s情況下,維護(hù)etcd,手動(dòng)添加、刪除節(jié)點(diǎn)
注意:4001為對(duì)外提供服務(wù)的端口,7001為節(jié)點(diǎn)間交互的借口
/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 (remove中的id 為meber list中顯示的id,)
查看節(jié)點(diǎn):
/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
查看節(jié)點(diǎn)狀態(tài):
[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
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。