01/20/2023, 7:38 PM
Hi, I have deployed RKE2 using air-gapped installation procedure and the cluster is up and running. Now I want to change the hostnames of all the nodes (both server and agent nodes). I have manually updated the hostnames of the nodes and rebooted the VMs but the nodes went into "NotReady" state. I have deleted the "NotReady" nodes but unable to delete the server agent. Also I see most of the pods are still scheduled on server agent so unable to delete it. So, please share me any references or share me the steps to rename the hostnames of the RKE2 cluster without impacting any pods. Any help would be appreciated.


01/20/2023, 8:12 PM
you can’t do that. You cannot change the Kubernetes node name without deleting and re-adding the node to the cluster. Deleting the node will remove any pods scheduled to it.
Generally speaking you should settle on the network configuration before bringing the cluster up. Making significant changes to the network config or hostnames/addresses afterwards is going to be disruptive to the workloads on those nodes.


01/22/2023, 5:00 PM
Thanks @creamy-pencil-82913