newsnowlabs / docker-ingress-routing-daemon

Docker swarm daemon that modifies ingress mesh routing to expose true client IPs to service containers
MIT License
190 stars 37 forks source link

After installing DIND, services only work on the node running the proxy #27

Closed HeedfulCrayon closed 2 years ago

HeedfulCrayon commented 2 years ago

@struanb I hope what I am doing is not completely wrong. To explain, I have 3 nodes in my swarm (all managers) that run services. My services are not duplicated across the nodes, there is just one replica per service. Nginx Proxy Manager is the proxy that I am using, and it seems that after installing the daemon, it works as expected, but only on services running on the same node as the nginx proxy manager. All other services just don't respond.
Here is my ExecStart /usr/local/bin/docker-ingress-routing-daemon --ingress-gateway-ips 10.0.0.2,10.0.0.3,10.0.0.5 --install

I am pretty new to all of this (and self taught), so I may be doing this totally wrong

HeedfulCrayon commented 2 years ago

oh, nevermind. I got it figured out. My containers were not set up correctly. They were exposing ports to ingress, turns out they didn't need to be.