Madhusmita Nayak:
Need one help in chapt13- Backup and restore, Q8. While restoring it as per teh solution provided, I am only changing the Volumes:->hostpath. the result is not coming as expected.
Gerard:
Hi, I think it may take few mins to work after changing the path in the etcd.yaml.
Alistair Mackay:
After saving the edited etcd.yaml
you can run this
watch docker ps
which will print out all running containers every 2 seconds.
You’re waiting to see the following containers all running stably
• api server
• etcd
• scheduler
• controller manager
They will be identifiable from the container names. Might take up to a minute. If that doesn’t happen, you may have made some mistake.
Press CTRL+C
to exit watch.
unnivkn:
Hi @Madhusmita Nayak & @Gerard please try to relocate etcd.yaml to different folder & bring it back.
k get po -n kube-system
mv /etc/kubernetes/manifests/etcd.yaml /etc/kubernetes/etcd.yaml
mv /etc/kubernetes/etcd.yaml /etc/kubernetes/manifests/etcd.yaml
k get po -n kube-system
Madhusmita Nayak:
@unnivkn I tried with the approach suggested above (moving the etcd file and getting it back), it did not work for me, still faced the same issue, but when I tried the same steps in killercode playground, it worked smoothly as expected. any suggestion pls
unnivkn:
Hi @Madhusmita Nayak please share this output:
ls -ld /var/lib/etcd-from-backup