Hello guys, I have a question, if ETCD run as a service (not a static pod), and . . .

Trung Tran:
Hello guys, I have a question, if ETCD run as a service (not a static pod), and the config file will be store like this /etc/systemd/system/etcd.service
After restore the ETCD to new directory, how can we update the current data dir
Just use vim to edit the /etc/systemd/system/etcd.service file, does it make sense?

SMP:
Check out this answer https://kodekloud.com/community/t/exam-failed-blocking-questions-etcd-restore-and-cluster-upgrade/16939/16|https://kodekloud.com/community/t/exam-failed-blocking-questions-etcd-restore-and-cluster-upgrade/16939/16

SMP:
He explains it in step 2

Trung Tran:
thanks @SMP

Manickam Krishnan:
So backup need to take from exam node and restore it on exam node itself?

Manickam Krishnan:
@SMP

mohd aamir mir:
@Trung Tran did u understand?

Trung Tran:
@mohd aamir mir just follow what they discussed in the above link, I dont have a chance to practice with this solution yet
But remove the current data-dir and then restore in the same path will save some additional step, then just restart the etcd service
The key point here is etcd can be run as static pod OR linux service, in case it runs as linux service, we can apply the steps in the community.kodecloud, if it a static pod, so it is easy, just like the labs.

mohd aamir mir:
remove data-dir means?

Manickam Krishnan:
My question we need to run the test pod on the control plane node. Then come to exam node and take the backup and then restore without data dir… And edit the systemd etcd service config file with the new file