How to re-add a Master node to the RKE2 HA cluster once its removed from cluster.
Article Number: 000020821
Environment
RKE2
Situation
Failed to re-add one of the master nodes to the cluster after the node maintenance/OS repair
Cause
Due to the OS corruption, one of the Master node got removed from a running RKE2 cluster.
Resolution
Once the Node is ready to rejoin the cluster after the repair, the below steps has to be performed on the node.
1. Collect the token from the existing master node and adjust the config.yaml
2. Make sure all the RKE2 processes are cleaned up on the deleted node.
cd /usr/local/bin
./rke2-killall.sh
3. Run the command to do the db cleanup.
sudo rm -rf /var/lib/rancher/rke2/server/db
3. Start the RKE2 server using the binary.
sudo systemctl start rke2-server