Menu

πŸ“°
0

Reddit - Please wait for verification

KubernetesΒ·/u/lickety-split1800Β·2 days ago
#z56NejTf
Reading 0:00
15s threshold

Greetings, I have been trying out the backup procedure for kubernetes core as part of my learnings. This has been the procedure I have been testing. # Backup ETCDCTL_API=3 etcdctl --endpoints=localhost:2379 --cacert /etc/kubernetes/pki/etcd/ca.crt --cert /etc/kubernetes/pki/etcd/server.crt --key /etc/kubernetes/pki/etcd/server.key snapshot save /tmp/etcdbackup.db # Stop Kubernetes services by moving the static pod manifests and waiting mv /etc/kubernetes/manifests/*.yaml /etc/kubernetes/ # Restore crictl ps – check if etcd has stopped. mv /var/lib/etcd /var/lib/etcd-old etcdctl snapshot restore /tmp/etcdbackup.db --data-dir /var/lib/etcd - restore the backup Move the static Pod files back to /etc/kubernetes/manifests/ crictl ps - veriy the Pods have restarted. kubectl get all - shows the original etcd resources However after doing everything I get. # kubectl get all The connection to the server 192.168.115.11:6443 was refused – did you specify the right host or port?…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More