I have a CentOS lab environment that holds 3 systems (A, B, C). Each system has 4 network links:
eth2 and eth3 are not bonded or in any sort of config where they are aware of each other. They are both in the same vlan and you can ping from eth2 to eth3 from any given system.
I'd like to setup Kubernetes to use eth2 and eth3 for all its work. In particular, I want to keep traffic off the slower 1g network and off of the interface I'm using for iscsi. All the kubernetes bits (control plane, data plane, applications, etc) to run over eth2 and eth3.
I may down the road want to open a specific service on eth0 for consumption (prometheus metrics).
Specific Config:
System A:
System B:
System C:
The default setup with kubeadm init
seems to use all interfaces.
I can't seem to find any documentation to guide me....
As mentioned in the docs here https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-init/
use the flag --apiserver-advertise-address
ie kubeadm init --apiserver-advertise-address 192.168.1.1