You can change (or correct the value of) the IP address of the Kubernetes master
node.
About this task
During installation, there is an optional manager.external_ip setting in the
install.hosts.properties file to specify the external IP address of the manager
(master) node. Follow these steps if you specified the wrong value or need to change this value on a
system that was installed successfully.
Procedure
- From a Terminal session (as root or a non-root user ID enabled to run
kubectl commands), enter the following command on the master node:
kubectl -n kube-system edit svc
- Go to the first occurrence of two sections that list externalIPs. For
example, suppose that 172.16.241.36 was entered for both the
manager.ip and the manager.external_ip options:
externalIPs:
- 172.16.241.36
- 172.16.241.36
- To change the external IP address, edit one of the lines. For example:
externalIPs:
- 9.30.194.224
- 172.16.241.36
- Save and exit this file.
Results
After you save the file, the system automatically listens on 9.30.194.224
and accepts connections on this IP address.