Hostname and IP address modification of 'k8s-master' in kubernetes

4/8/2019

Is it mandatory to set hostname 'k8s-master' for master node in kubernetes? Can we change IP address of the master node and child node after successful installation of kubernetes?

-- Mitul FG
kubernetes

1 Answer

5/15/2019

In general, master node name composed from hostname of the machine where you bootstrap Kubernetes cluster, moreover master node name can be changed via building cluster procedure through kubeadm install tool:

kubeadm init --node-name.

Solution provided by @valerius257 for Kubernetes master node IP replacement in a comment from @char works pretty fine, that was already checked in my environment. Answer retains for any further contributors research.

-- mk_sta
Source: StackOverflow