Hi. I am trying to migrate a Rancher single node ...
# general
q
Hi. I am trying to migrate a Rancher single node Docker installation to a Rancher single node Kubernetes (K3S) installation and try to wrap my head around how Racher's data is persisted. For Docker I had a volume attached to my node and bind mounted it into the container. I don't see that the helm chart supports something similar. Does it?
h
q
Hm, not exactly what I am looking for: I am terminating my node at any random time and have them recreated and setup automatically. With BRO I'd need automation around: 1. triggering a backup before termination (which is never reliable), 2. finding the latest backup to restore when new machine is created and Rancher is deployed in Kubernetes.
w
c
Rancher does not store anything on volumes. All Rancher data is stored as resources in the Kubernetes apiserver.
💡 1
All you need to do is back up the entire etcd datastore, or use BRO to back up the individual resources.
q
Thanks, that helps.
My K3S runs with the embedded Sqlite (to keep things simple and I am aware of its flaws). I'd mount a volume to
/var/lib/rancher/
and should be safe the, shouldn't I?