From the course: Certified Kubernetes Administrator (CKA) Cert Prep

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Backing up the etcd

Backing up the etcd

- In this video, you learn about etcd backups. So, the etcd is a core Kubernetes service that contains all resources that have been created. You lose the etcd, you lose all of your Kubernetes information. Etcd is started by the kubelet on the control plane nodes as a static Pod. And yeah, losing it is dramatic. So, you better make a backup. How do you do that? Well, you need root access, and you need the etcdctl utility. You will have to install that before because it's not a part of the standard kube-tools package. So, sudo apt install etcd-client will help you and will install that tool. Now, in older versions of the etcdctl, the wrong API version was used by default. And you can fix this by using sudo ETCDCTL_API=3 etcdctl with all the required options and a snapshot save. And to use the etcdctl, you also need to specify the etcd service API endpoint, as well as the cacert, the certificate, and the key that you want to use. You can find values for all of these in different ways…

Contents