In K8s cluster with 1 Master and 3 nodes on AWS
Can any please clarify, How different services are distingvished with same IP.
root@ravi:/home/# kubectl get ing --all-namespaces
NAMESPACE NAME HOSTS ADDRESS PORTS AGE
2048-game nginx-ingress 2048.exam.com 1.2.3.4 80 1h
default echomap bar.baz.com 1.2.3.4 80 2h
Ingress services are able to pull IP (and IP is one of Nodes Public IP). But not reachable from outside.
That can be a firewall problem. Check Security Group of your nodes, maybe it is denied to connect to Ingress port from outside.
Both ingress services have same IP.
Ingress is an object which contain an instruction for your Ingress Controller how to process request addressed to different hosts. All requests for any host actually going to the Ingress Controller, which processing it based on "Host" header. Actually, it working like Name-Based virtual hosting.
That's why all your Ingresses have same IP and it is an IP and port of your Ingress Controller.