Remove a management node from a 3 nodes cluster and add it back to the cluster by reinstalling it
- From a HA cluster with 3 nodes
- Delete one of the nodes after the node promotion(all 3 nodes are management nodes)
- Reinstall the removed node with the same node name and IP
- The rejoined node will be promoted to master automatically
Expected Results
- The removed node should be able to rejoin the cluster without issues
- Purpose is to cover this scenario: https://github.com/harvester/harvester/issues/1040
- Check the job promotion with the command kubectl get jobs -n harvester-system
- If a node is stuck in the removing status, you likely face to this issue, execute this command as workaround:
kubectl get node -o name <nodename> | xargs -i kubectl patch {} -p '{"metadata":{"finalizers":[]}}' --type=merge