Etcd backup is not working for me

Ajay Yewale:
etcd backup is not working for me

Vitor Jr.:
Please, share the link to the lab so I can check it.

Hailu Meng:
You missed the endpoints

Alistair Mackay:
You will also most likely need to edit the volume mount in the static manifest for the etcd pod to point to the directory where the backup is restored to.

Ajay Yewale:
https://kodekloud.com/topic/practice-test-backup-and-restore-methods-2/

Ajay Yewale:
Since morning i am trying mounted in the etcd.yaml but still getting error

Ajay Yewale:
IN the solution video does not mention any endpoint though

Alistair Mackay:
What did you edit in the etcd.yaml?
You don’t need to change the --data-dir argument to etcd, you need to find the volume definition and change its host path to your backup.
Within the container, the mapped path is still /var/lib/etcd

Ajay Yewale:
i got your point. Going through solution video only… please have a look…

Vitor Jr.:
If your etcd is running in the same host the endpoint is implicit

Vitor Jr.:
That’s why the solution doesn’t use it

Ajay Yewale:
so do i need to kill etcd to work…

Ajay Yewale:
previously same step was working …

Hailu Meng:
Is it safe to mv all controller static pod files to somewhere in order to restart all of them after moving them back? Or we just go ahead edit etcd.yaml itself to trigger the pod restart?

Vitor Jr.:
Lost connection while doing the lab

Vitor Jr.:
I’m going to record my solution and paste a link here

Alistair Mackay:
It is safe to mv them.
kubelet will stop pod when file disappears.
It will apply when file appears or is edited.

Vitor Jr.:
Backup etcd (task 6): https://asciinema.org/a/mcXxLNsROrkESJjX0dITkOGNq

Vitor Jr.:
Resstore etcd (task 9): https://asciinema.org/a/maqaqeUJRCc5f4Ouk0fRt380m

Hailu Meng:
Thank you @Vitor Jr. for the video. Is modifying volumemount and —data-dir mandatory? Or we can just change the volume hostpath?