Hi, I have a worker node that has two network inte...
# kubernetes
g
Hi, I have a worker node that has two network interfaces on different networks (internal and external). When the internal interface is the one with the default route then communication between the control node and the worker node works fine. However, when I make the external interface the primary with the default route then I see that kube-apiserver is trying to communicate with the worker node using the external IP which doesn't work since the control node is not on that network. I'm assuming the kubelet is using whichever IP is associated with the default route. Is there a way to tell kubelet which network to use without hard-coding the IP address to use? I've seen
--node-ip
but I'm looking for a solution that doesn't require manual configuration for new clusters.