Skip to content

k3s restore from backup fails when node IP changes #10041

Answered by brandond
ostapkostyk asked this question in Q&A
Discussion options

You must be logged in to vote

So, obviously the k3s expects to restore to the node with the same IP.

No, that is not correct. The cluster-reset that is performed as part of the snapshot restore updates the cluster membership to the current node's IP.

Found [m1-6b021274=https://PUBLIC_IP:2380], expect: m1-6b021274=https://TAILSCALE_IP:2380"

You have specified --node-ip when running k3s server but not when running k3s server --cluster-reset. You need to consistently set your node IPs. This may be easier to do if you place it in the config.yaml, so you don't forget to set it on the command-line when running through the restore.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ostapkostyk
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants