microk8s icon indicating copy to clipboard operation
microk8s copied to clipboard

I deleted all the nodes with remove-node, how do I add the localhost node back?

Open Freundschaft opened this issue 3 years ago • 5 comments

ok maybe im just really dumb or no one ever thought of this scenario. on a test machine I deleted all the nodes with remove-node, even the last controller node, now there are no nodes in my microk8s setup, and im wondering how i can add the machine that i am running microk8s back as a node.

when i use add-node, then try to join, microk8s tells me that its not possible because the machines share the same ip (obviously)

any ideas or is this just something that should never be done and cant be recovered from

Freundschaft avatar May 05 '22 15:05 Freundschaft

I recall theres a --force argument in the remove-node that will remove it also from dqlite.

balchua avatar May 06 '22 14:05 balchua

yea, but how can I add it again to my cluster?

Freundschaft avatar May 09 '22 12:05 Freundschaft

You can remove the snap and reinstall it again

lferran avatar May 13 '22 13:05 lferran

yea thats what I did, but there must be another solution surely?

Freundschaft avatar May 14 '22 01:05 Freundschaft

Had a slightly different issue. My workers weren't working (no pun intended) so I applied a patch to them. However that presents an issue with reverting the patch changes when joining from another node. In conclusion, I get the following impossible to remove node now.

2022-05-19_202815

I think I've literally run into every issue in microk8s so far 😞

usersina avatar May 19 '22 19:05 usersina

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 14 '23 21:04 stale[bot]