Fixing the IP of a single node Kubernetes installation


If a server’s private IP may change, you can use the IP of the docker0 interface when installing Kubernetes.

  1. Install Docker to create the docker0 interface.
  2. 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
[1] docker0
Enter desired number (0-1): 1
  1. Enter 1 to select the docker0 interface.
  2. Proceed with the rest of the installation and upload your license in the UI as always.

The Kubernetes API server will be listening on and changes to the IP of eth0 will not affect the installation.