Alex:
Hallo everybody, does anybody have an idea how to create and restore ETCD on HA cluster. Somehow it’s not working for me as expected. instance etcd-0 has the ip 10.10.10.100
and etcd1 10.10.10.101
, i created a backup using snapshot
etcdctl snapshot save snapshotetcd --endpoints=<https://10.10.10.100:2379> --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key
deleted a namespace foo
and then restored the backup
1.moved the api-server manifests as mentioned in the documentation inorder to stop them
2. etcdctl snapshot restore snapshotetcd --endpoints=<https://10.10.10.100:2379> --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key --data-dir /var/lib/etcd2
3. updated the path: /var/lib/etcd2 on the master-0 where etcd-0 is runnung.
4. moved api-server manifest back
5. restarted kubelet
6. deleted other controll-plane components
everything is running back with /var/lib/etcd2 as directory in etcd-0, but the deleted namespace is not showing?
How can i be sure that etcd is using the /var/lib/etcd2
in etcd-0 and not /var/lib/etcd
in etcd-1 ?