In prod environments, it is usual to have servers with multiple interfaces viz. one for mgmt, one for data.
Is there a way to configure nodeport service to be running on interface of choice? By default it looks like k8 runs the service on eth0 when the server had eth0 and eth1 interfaces whereas I want to know if we can run it on eth1.
Hi,
Although I’ve not actually tested this, i believe it can be done with the --nodeport-addresses argument to kube-proxy.
Specify a list of subnet CIDRs to which the eth1 interface is connected at each of the nodes.
If your nodes are on 2 subnets, put both subnet CIDRs