Backing up etcd

hi is there a good resource for how to back up etcd in teh kubernetes docs?

di i need to install etcd before i can take a backup etc. im using katacoda to prcatice

I found this resource to be rather helpful.

https://kubernetes.io/docs/tasks/administer-cluster/configure-upgrade-etcd/#backing-up-an-etcd-cluster

Many Thanks :slight_smile:

1 Like

Beside that, you can consider etcd-manager that kops is using (and has backups) or even this: https://github.com/heptio/velero

1 Like

Velero is great from what I hear.

ok struggling to get this to work. the docs dont seem to have much detail on etcd. is etcd installed as apart of the kubernetes install or it a OS thing? do i need to install etcd first. im trying to practice in katacoda but not getting very far…

It depends on how you want to install it. Most tools will include the etcd as part of the install of a Master Node, though if you want you can point the master to an outside etcd cluster.

What part are you struggling with?

@spursn17uk I didn’t find that link above that useful either. It gives a start, but it doesn’t say that you NEED to specify certs and keys from the etcd.yml file in order to even create a backup. I am trying to find a help doc somewhere that will spell this out, but I have not found it yet.

But to answer you question, ETCDCTL is another tool you need to install alongside all the other k8 stuff. As far as I know , it only deals with etcd.

Hi,

If you want to backup etcd data of Kubernetes, please check out the
following project:
https://github.com/catalogicsoftware/kubedr

If there are any questions or if the instructions are not clear,
please do post in the Google group listed in the README.

Thanks,
Raghu

Thanks, but I am not trying to use another tool to do this - just using ETCDCTL.

@RyanG please see if this helps https://networkandcode.github.io/kubernetes/2020/02/22/backup-and-restore-master.html