Notice
Recent Posts
Recent Comments
Tags
- web&was apche htaccess
- n15148
- openldap
- perplexity
- admin port
- Storage
- mariadb
- banner
- Path
- unix_socket
- data-door
- Kubernetes
- drbd
- CentOS
- Galera Cluster
- vmware
- Auth
- docker
- 우파푸른하늘
- Network
- 웰카
- MotD
- CEP
- mgmtip
- maxscale
- wildfly jboss
- etcd
- snmp
- port description
- dell
- 우파푸른하늘80만이벤트
- n1548
- RHEL8
250x250
반응형
전산쟁이의 기억노트
etcd member 제외 방법 본문
728x90
반응형
kuebernetes DB격인 etcd의 member리스트를 제외한느 절차를 기술한다.
다중 마스터(3대로 구현)되어 있을때 특정 노드를 제외하는 방법이다.
- etcd memver list 확인
$> cd /usr/local/bin $> ./etcdctl.sh -w table endpoint status --cluter=true +----------------------+------+---------+----------+-----------+------------+------------+------------+--------------------+--------| | ENDPOINT | ID | VERSION | DB SIZE | IS LEADER | IS LEARNER | RAFT TERM | RAFT INDEX | RAFT APPLIED INDEX | ERRORS | +----------------------+------+---------+----------+-----------+------------+------------+------------+--------------------+--------| | https://1.2.3.4:2379 | abcd | 3.4.13 | 11 MB | true | false | 16 | 2607488 | 2607488 | | | https://5.6.7.8:2379 | efgh | 3.4.13 | 11 MB | false | false | 16 | 2607488 | 2607488 | | | https://9.8.7.6:2379 | ijkl | 3.4.13 | 11 MB | false | false | 16 | 2607488 | 2607488 | | +----------------------+------+---------+----------+-----------+------------+------------+------------+--------------------+--------|
- 제외할 인스턴스 ID입력
$> ./etcdctl.sh member remove efgh Memeber efgh removed from cluster 1234
- 제외상태 확인
$> cd /usr/local/bin $> ./etcdctl.sh -w table endpoint status --cluter=true +----------------------+------+---------+----------+-----------+------------+------------+------------+--------------------+--------| | ENDPOINT | ID | VERSION | DB SIZE | IS LEADER | IS LEARNER | RAFT TERM | RAFT INDEX | RAFT APPLIED INDEX | ERRORS | +----------------------+------+---------+----------+-----------+------------+------------+------------+--------------------+--------| | https://1.2.3.4:2379 | abcd | 3.4.13 | 11 MB | true | false | 16 | 2607488 | 2607488 | | | https://9.8.7.6:2379 | ijkl | 3.4.13 | 11 MB | false | false | 16 | 2607488 | 2607488 | | +----------------------+------+---------+----------+-----------+------------+------------+------------+--------------------+--------|
reference
- http://igoni.kr/books/linux/page/etcd-member-xeZ
etcd member 제외 방법 | igoni.kr
kuebernetes DB격인 etcd의 member리스트를 제외한느 절차를 기술한다.다중 마스터(3대로 구현)되어 있을때...
igoni.kr
728x90
반응형
Comments