1. 참고문서
우분투 etcd 설치 방법 : https://sarc.io/index.php/cloud/1739-ubuntu-etcd-installation
2. 기본적인 etcd 명령어
etcd version
etcd --version
3. etcd 백업 방법
$ export ETCDCTL_API=3 $ etcdctl --endpoints=https://127.0.0.1:2379 \ --cacert=[CACERT파일] \ --cert=[CERT파일] \ --key=[KEY파일] \ snapshot save [백업파일]
- --cacert : 속성이 trusted-ca-file 인 값
- --cert : 속성이 cert-file 인 값
- --key : 속성이 key-file 인 값
4. etcd 복구 방법
export ETCDCTL_API=3 $ etcdctl --data-dir [복구할위치] \ snapshot restore [백업파일]
복구가 완료되면 etcd.yaml 파일에 etcd 위치를 변경한다.