Hello, i restored the etcd backup without any error message but when i check the . . .

Amel ECHEIKH EZAOUALI:
Hello, i restored the etcd backup without any error message but when i check the object in system namespace i get the message No resources found in kube-system namespace. I followed the steps described here https://github.com/mmumshad/kubernetes-the-hard-way/blob/master/practice-questions-answers/cluster-maintenance/backup-etcd/etcd-backup-and-restore.md|https://github.com/mmumshad/kubernetes-the-hard-way/blob/master/practice-questions[…]wers/cluster-maintenance/backup-etcd/etcd-backup-and-restore.md




sreenivas:
hi Amel, i gues you are missing certs in snapshots save and restore. please refer to https://kodekloud.slack.com/archives/CHMV3P9NV/p1606697073438200

Amel ECHEIKH EZAOUALI:
thanks but the certificates are not mandatory in case the restore is done on the same server that runs etcd pod

Md Ishaq R:
@Amel ECHEIKH EZAOUALI i think you are missing on the --initial-cluster-token=“etcd-cluster-1” in the etcd.yaml file

OE:
It gives you an error in your first screenshot. You can’t use --data-dir with a directory that already exists. Correct that. You also need the certs

Amel ECHEIKH EZAOUALI:
@OE i used all option but the problem still persist :confused:



image.png

Amel ECHEIKH EZAOUALI:

Subhijith Tharayil:
The --cacert is pointing to server.crt. It should point to */ca.crt in the snapshot save