This message was deleted.
# k3s
a
This message was deleted.
c
you could do a rolling move, by deleting nodes from the cluster and then re-joining them with their new IP.
as long as the two networks have connectivity with each other
w
They kind of do… the new network is going to be behind a NAT gateway, so the old networks’ nodes won’t be able to communicate with new (moved) nodes… New nodes can easily talk to old nodes tho.
And, in this case, it’s only a two-node cluster…
Copy code
root@demo-nb-12110:~# kubectl get nodes
NAME            STATUS   ROLES                  AGE   VERSION
demo-nb-12110   Ready    control-plane,master   31h   v1.25.4+k3s1
demo-nb-12111   Ready    <none>                 11s   v1.25.4+k3s1
c
for a single-server cluster you could probably get away with just stopping the server, running the killall script, and then bringing it back up with the new IP. Do the same with the agent, but change the server’s IP in the config before bringing it back up. This is more complicated with embedded etcd, because you have to manage quorum while moving the nodes… but not a problem for you.
w
Cool, thanks