11 - CKA exam Q11 with Solution.... Kubernetes .. CKA Exam Questions Challenge .. Part 11

preview_player
Показать описание

It's easy: #kubenetes #CKA #DevOps #security

SOLUTION 11)

alias g=kubectl
sudo snap install etcd
g get pods -A |grep etcd
g describe pods etcd-node6 -n kube-system |grep Command -A 20
######run below as root)
snapshot save /root/etcd-backup070822

ls /root/etcd-backup070822
Рекомендации по теме
Комментарии
Автор

If you need to restore (follow below method):

1#Get cluster end-point using

g describe pods etcd-node6 -n kube-system |grep -i command -A19

2# Restore backup to a new directory near original directory so that you can change it easily in etcd.yaml:

ETCDCTL_API=3 etcdctl --endpoints 192.168.58.6:2379 --data-dir /var/lib/etcd-snapshot0808 snapshot restore etc-backup.db


3# Edit ; search & change /var/lib/etcd to /var/lib/etcd-snapshot0808 (3 such changes would be there in etcd.yaml)


wait for some time, it takes time for new etcd conatiner to rebuild

greatbe