If a server’s private IP may change, you can use the IP of the docker0 interface when installing Kubernetes.
-
Install Docker to create the
docker0
interface. - Run the kubernetes-init script to install Replicated with the Kubernetes scheduler. Because docker has been pre-installed, the script will detect multiple interfaces and prompt you to select one:
Please choose one of the following network interfaces:
[0] eth0 10.138.0.4
[1] docker0 172.17.0.1
Enter desired number (0-1): 1
- Enter
1
to select thedocker0
interface. - Proceed with the rest of the installation and upload your license in the UI as always.
The Kubernetes API server will be listening on 172.17.0.1 and changes to the IP of eth0 will not affect the installation.