I have an Openshift 4.1 cluster running on bare metal (UPI installation) where machines have several NICs. By setting up reverse hostname lookup in DNS properly I can make all nodes use the correct NICs (host IPs are in my 192.168.0.x range). However, it seems that when there's a pod with hostNetwork: true
this gets PodIP
that matches the default route (at least that's how it seems). This is incorrect: the default route goes to the public internet and the IPs on some nodes are not reachable from another nodes.
Could you point me to the sources where is the PodIP determined? Or even better, let me know if there's a way (node annotation?) that would hint it about the 'default' IP?
Note that multus CNI is running in the cluster but I am not actively adding further interfaces.