https://rancher.com/ logo
b

billions-airline-85860

01/21/2023, 11:14 AM
Hi. When setting up a Rancher Backup, what is actually being backed up? Is it what is under the "resources"? Or is everything being backed up, so the whole cluster can be restored again?
m

mysterious-salesclerk-25177

01/21/2023, 12:35 PM
It's everything that is needed to restore Rancher itself, but not the entire cluster
Just run a backup and download it from object storage, it's a simple tarball, so you can easily see what's included
b

billions-airline-85860

01/22/2023, 11:09 AM
Ah. Ok. And what about backing up the cluster? Like all the CRDs and manifests and especially the secrets?
I guess, if you are following gitops practices, that's the back up, in a sense, for the cluster's config.
Hmm.... I guess secrets are the only thing that are concerning me really. Any suggestions on how to handle them best?
m

mysterious-salesclerk-25177

01/22/2023, 11:40 AM
You're looking for etcd backup.
However, snapshots are stored locally, so this is only helpful in case you accidentally delete somethig, not if all control plane nodes are lost. For disaster recovery, you would have to set up S3 storage for etcd snapshots, see documentation.
r

rich-electrician-53678

01/23/2023, 7:27 PM
Hi, You have 2 types of backup in rancher: backup etcd and backup/restore operator. The first backup etcd is enabled by default when you install rke2 or k3s and backup the cluster configuration stored in your etcd database. The second backup/restore is an operator installed in your cluster which allowed to backup the crd, and all kubernetes objets(pod, deployment ...). NB: if you use fleet, this operator cannot backup the fleet secret. You must recreate manually your fleet secret after the restore.
q

quick-army-7065

03/12/2023, 10:20 PM
When I import clusters into Rancher, does etcd backup contain those clusters to be restored at a later time?
4 Views