
소개
kuebernetes DB격인 etcd의 member리스트를 제외하는 절차를 기술한다.
다중 마스터(3대로 구현)되어 있을때 특정 etcd member를 클러스터에서 제거하는 방법입니다.
확인 작업
- etcd member list 확인
$> cd /usr/local/bin $> ./etcdctl.sh -w table endpoint status --cluster=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 Member efgh removed from cluster 1234 - 제외상태 확인
$> cd /usr/local/bin $> ./etcdctl.sh -w table endpoint status --cluster=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 | | +----------------------+------+---------+----------+-----------+------------+------------+------------+--------------------+--------|
작성일: 2026년 6월 18일
,
마지막 업데이트: 2026년 8월 20일