What is the ingress network and routing mesh in Swarm?
AdvancedConceptNetworking
Answer
For a service with a published port, Swarm opens that port on every node and uses IPVS-based load balancing via the ingress overlay to route to any healthy task, even on other nodes. Use mode=host publishing to bind only on nodes running the task and skip the mesh, which preserves client IPs.
More on Networking
What network drivers does Docker have?BeginnerHow does the default bridge network work?AdvancedDefault bridge vs user-defined bridge: what is the difference?IntermediateHow does container DNS work?IntermediateHow does `-p 8080:80` work under the hood?AdvancedWhat is the difference between `-p 80:80` and `-p 127.0.0.1:80:80`?Beginner