Reasons to use Traefik load balancer

  1. It automatically load balances containers. You run it in a container, which you point to your docker service socket and it just detects containers as they start stop. Then you add some labels which Traefik reads (which domain connects to what container) and voila! Run it as a Kubernetes ingress and things become more interesting.
  2. It automatically handles SSL certificates (via Letsencrypt). Yep, you just list your domains which are already pointing to your Traefik setup and on the first request to HTTPS it sets up your certificates automagically and ensures they are updated. No crons, nothing else needed (at the expense of one single very slow request).
  3. It can handle both external and internal load balancing. It’s not just websites that get balanced but also fpm as well as databases.
  4. It exposes nice metrics.
main stats page — showing frontends and backends (one frontend may load balance several backends)

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store