I have setup a three node cluster (1 master, 2 workers) each node on a baremetal host. To let traffic into the cluster, am using a NGINX Ingress controller, installed using stable/ngix-controller helm subchart. As I'm not using any loadbalancer so I set the externalIPs field to my master node IP and have the externalTrafficPolicy set to Local.
My ingress object has 3 host domains, each one set to specific service. These domain were added to my computer /etc/hosts pointing to the masterIPs.
How does my traffic destined to a given domain reach the correct node and subsequent pod If neither the pod nor the ingress controller are running at the master?? Shouldn't the packets be dropped as stated here Ingress controller NodePort service
Thanks in advance!! Cheers!!
----EDIT----
nginx-ingress:
controller:
config:
hsts: "true"
scope:
namespace: ingress-nginx
service:
externalIPs:
- "10.X.X.X"
externalTrafficPolicy: Local