What does lbswarm do?

I found the documentation for lbswarm at Docker - Traefik but I have no clue when I would need to set this option. Can anyone elaborate when to set this option makes sense?

As noted in the documentation:

If you enable this option, Traefik will use the virtual IP
provided by docker swarm instead of the containers IPs.
 Which means that Traefik will not perform any kind
 of load balancing and will delegate this task to swarm.

This sort of option is available for situations where the app or service is tied to the virtual IP of the service, not the container. It is used in edge cases where DNS names resolve to virtual IPs instead of container IPs, and provides the ability to have TLS resolution work without having different certificates in each container.

You should not need to set this option unless you fall into an edge use case, where its use would be clear.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.