https://rancher.com/ logo
#k3s
Title
# k3s
h

high-ram-79592

01/10/2023, 10:20 PM
Is there support for moving a k3s master from a machine to another? (Looking at moving it from cloud to local LXD vm) No HA
c

creamy-pencil-82913

01/10/2023, 10:23 PM
if you’re using etcd you could snapshot/restore, but easier for a single node is probably to just stop the server and copy the files over. If you’re using etcd you’ll have to start it once with --cluster-reset to change the hostname in the etcd cluster.
h

high-ram-79592

01/10/2023, 10:24 PM
thanks
c

creamy-pencil-82913

01/10/2023, 10:25 PM
you’ll have to change the server address on all the agents as well, of course
h

high-ram-79592

01/10/2023, 10:27 PM
is there a list of directories tied to k3s master role?
looks like mostly everythng is in /var/lib/rancher ?
c

creamy-pencil-82913

01/10/2023, 10:29 PM
all you really need is the stuff under /var/lib/rancher/k3s/server
the agent stuff is 99% containerd stuff, by size at least
and the rest is recreated on startup
h

high-ram-79592

01/10/2023, 10:30 PM
great stuff, thanks a bunch
12 Views