set kubelet node IP
kubelet was using localhost as hostname, hence reporting 127.0.0.1
as its node IP.
It is more realistic to report a real IP, it also fixes the problem
with some tests that assumes that nodes can not have localhost
addresses as IPs.
export DNS_SERVER_IP={{ ansible_default_ipv4.address }}
export API_HOST={{ ansible_default_ipv4.address }}
export API_HOST_IP={{ ansible_default_ipv4.address }}
+ # Use the hostIP as node InternalIP
+ export HOSTNAME_OVERRIDE={{ ansible_default_ipv4.address }}
+ # Listen in all available interfaces
+ export KUBELET_HOST="0.0.0.0"
export KUBE_ENABLE_CLUSTER_DNS=true
export ENABLE_HOSTPATH_PROVISIONER=true
export KUBELET_FLAGS="--enable-debugging-handlers=true --enable-server=true --anonymous-auth=true"
