I was practicing Docker Swarm Ingress network. I have created 1 Manager and 2 Worker nodes.
Worker 1: 192.168.39.22
Worker 2: 192.168.39.23
Deployed an ‘httpd’ Service (container) with --replicas 1 and --publish 80:80. The container is now running on Manager only.
Now I’m able to access my web page by
http://192.168.39.21:80 - Manager
but when I try to access the web app by other worker node IPs, it is not working.
http://192.168.39.22:80 - Worker 1
http://192.168.39.23:80 - Worker 2
As far as I understand, it should work with any of the node in the cluster with the internal load balancing. I have opened required firewall ports for Swarm.
Sped almost 2 days troubleshooting and referring internet but did not resolve. Could someone help please, I’m totally stuck, any help would be much appreciated.