I deployed a cluster (on premise) as proof of concept, using this command:
sudo kubeadm init --upload-certs --pod-network-cidr=x.x.x.x/16 --control-plane-endpoint=x.x.x.x.nip.io
Now, i need to change the endpoint from x.x.x.x.nip.io to somename.example.com. How can i do this?
Kubeadm version: &version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.4", GitCommit:"e6c093d87ea4cbb530a7b2ae91e54c0842d8308a", GitTreeState:"clean", BuildDate:"2022-02-16T12:36:57Z", GoVersion:"go1.17.7", Compiler:"gc", Platform:"linux/amd64"}
Posting an answer as a community wiki out of comments, feel free to edit and expand.
Based on the documentation and very good answer (which is about switching from simple to high availability cluster and it has steps about adding --control-plane-endpoint), there's no easy/straight-forward solution to make it.
Considering risks and difficulty it's easier to create another cluster with a correct setup and migrate all workflows there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With