I want to delete the cluster master node and rejoin the cluster. When trying to rejoin the node a problem occurs and rejoining fails. What can be done?
To delete the cluster master, we need to set the cluster master to a different master machine first.
On the admin machine: change the IP-Address from the current to new cluster master in:
/var/lima/<name_of_cluster>/clusterStorage.yaml
~/.kube/config
Delete the node
Delete the images to prevent interference: ctr -n k8s.io i rm $(ctr -n k8s.io i ls -q)
Change IP on new cluster master in /etc/kubernetes/admin.conf