방법 :
1. ETCD backup
##backup
ETCDCTL_API=3 etcdctl --endpoints=https://127.0.0.1:2379 \
--cacert=<trusted-ca-file> \
--cert=<cert-file> \
--key=<key-file> \
snapshot save <backup-file-location>
2. ETCD restore
ETCDCTL_API=3 etcdctl \
--data-dir <data-dir-location> \ ## 변경될 etcd 위치(to-be)
snapshot restore snapshotdb ## 복구시킬 저장된 스냅샷 경로(as-is)
3. etcd.yaml 파일 수정
sudo vim /etc/kubernetes/manifests/etcd/yaml
- hostPath :
path : [새로만든 경로로 수정]
'k8s > CKA' 카테고리의 다른 글
[연습]10. kubeadm upgrade (0) | 2023.03.04 |
---|---|
[연습]7. pod_mount (0) | 2023.03.04 |
[연습]6. Pod run with env (0) | 2023.03.02 |
[연습]5. Pod run (0) | 2023.03.02 |
[연습]4. expose AND service (0) | 2023.03.02 |