Specify Kubernetes API Server IP

Kubernetes version 1.13.2

When I was working on softlayer cluster, after installing kubernetes the kubectl command get stuck and return time execeeds error.

The issue is the master node has 3 IP address, but only one of them is accessable from client, if not specified, the kubeadm init command will choose the default network interface, sometimes it’s good but here does not fit.

the solution is use --apiserver-advertise-address <IP> in kubeadm init, then everything is good.

0%