AlgoViz

Traefik

easy 25 min

Traefik (say "traffic") is a reverse proxy that configures itself.

Where it shows up

The same pattern appears across everyday software.

  • K3s

    The K3s documentation describes Traefik as its ingress controller, deployed with a LoadBalancer service on ports 80 and 443.

  • Leaving ingress-nginx

    Traefik documents a provider that reads Ingresses with ingress-nginx annotations, so that teams can move without rewriting every resource.

  • One server, ten side projects (our example)

    A Compose file per project, one Traefik, and each project brings its labels. A new project is online when its container starts.

  • Preview for each change (our example)

    The build starts a container named after the branch with a matching Host label. When the branch closes, the container stops and the address is gone.

  • Consul and Nomad

    Services registered in Consul, or jobs in Nomad, carry tags that become routes. No container platform is needed.

  • Canary by weight (our example)

    A weighted service sends 5 percent to the new version. The weights change through the provider, without touching Traefik.