-
|
How to remove a worker node from RKE2 cluster? Setup: RKE2 cluster with nodes on manually created Harvester VMs, the cluster is registered in Rancher. At the moment, I do the following to remove a worker node:
Adding a node is done via the registration command, is there a command that reverts that? I haven't been able to find the corresponding documentation, issues or discussions. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
The kubelet creates its own Node resource when it starts, simply deleting that is the correct thing to do. There is not anything more to registration than that, as far as RKE2 is concerned. I believe there is an annotation you can set on the cluster resources to have it delete machines when their corresponding node is removed, but that is a Rancher question, not RKE2. |
Beta Was this translation helpful? Give feedback.
The kubelet creates its own Node resource when it starts, simply deleting that is the correct thing to do. There is not anything more to registration than that, as far as RKE2 is concerned.
I believe there is an annotation you can set on the cluster resources to have it delete machines when their corresponding node is removed, but that is a Rancher question, not RKE2.