Assuming you run a service exposed on port 80 in
global mode, will ingress traffic on port 80 for any given node / host then be handled locally by the instance running on that node?
The alternative would be that Swarm load balances the traffic to one of the running instances, regardless of which node it runs on.
After having experimented a bit with this myself, it appears that this can be achieved with the following configuration.
version: '3.2' services: traefik: image: [image] ports: - target: 80 published: 80 protocol: tcp mode: host deploy: mode: global endpoint_mode: dnsrr
The important parts are :
portssection format to be supported.
This will expose the service directly on port 80 on each node in the cluster, and traffic will be handled directly by that service.