Skip to main content
⎈K8sCalc

$ k8scalc compare traefik haproxy ingress

Traefik vs HAProxy Ingress

Traefik and HAProxy are two of the most popular maintained Kubernetes ingress controllers now that the community ingress-nginx project is retired. Traefik focuses on developer experience: CRDs, middleware chains, a dashboard and built-in ACME. The HAProxy Kubernetes Ingress Controller brings HAProxy's load-balancing engine, with fine-grained algorithms, strong TCP support and configuration changes applied largely without reloads.

Last reviewed: 2026-12-01

FeatureTraefikHAProxy Ingress
Configuration model
IngressRoute CRDs
ConfigMap + annotations
Auto service discovery
Yes (label-based)
No
Built-in dashboard
Yes—
Yes (stats page)—
Let's Encrypt built-in
Yes (native)
No (via cert-manager)
Middleware / plugins
Middleware CRD chain
Limited
Raw TCP throughput
High (Go)
Highest
Load balancing algorithms
Round-robin, WRR
Round-robin, leastconn, etc.
Resource usage (idle)
~30 MB RAM
~20 MB RAM
TCP/UDP routing
Yes (IngressRouteTCP/UDP)—
Yes (native)—
Community & ecosystem
Large
Smaller
gRPC support
Yes (native)—
Yes—

Verdict

Traefik wins on developer UX — automatic discovery, IngressRoute CRDs, built-in Let's Encrypt, and a dashboard make it the easiest ingress to operate. HAProxy wins on raw performance and advanced load balancing algorithms. For self-hosted clusters where ops simplicity matters, Traefik. For high-throughput, latency-sensitive, or financial workloads, HAProxy.

Choose Traefik if…

  • You want the easiest operations: label-based discovery, IngressRoute CRDs and a dashboard.
  • Your routing needs middleware (auth, rate limits, redirects) defined as Kubernetes objects.
  • You run k3s or a small self-hosted cluster and want sensible defaults.
  • You want one tool for Ingress and Gateway API.

Choose HAProxy Ingress if…

  • Throughput, latency and connection handling are critical (APIs, financial or high-concurrency workloads).
  • You need advanced load balancing: leastconn, consistent hashing, active health checks.
  • Long-lived connections must not be disrupted when configuration changes.
  • Your team already operates HAProxy outside Kubernetes.

Frequently Asked Questions

Which ingress should replace ingress-nginx?

Both are reasonable targets. Traefik is the gentler migration for most teams thanks to its documentation and defaults; HAProxy fits teams that care most about performance and load-balancing control. Neither reads ingress-nginx annotations, so plan to translate them.

Do I need cert-manager with Traefik?

For a single replica, Traefik's built-in ACME is enough. For several replicas (HA), use cert-manager: the open-source edition cannot share ACME storage between replicas. HAProxy Ingress always relies on cert-manager or your own certificates.

How much memory do they use?

Both are light at idle (tens of MB per replica). Memory grows with the number of routes, TLS certificates and connections; size with real traffic rather than idle numbers.

Do they support TCP and UDP services?

Yes. Traefik uses IngressRouteTCP/IngressRouteUDP; HAProxy handles TCP natively and is particularly strong there.

Related tool

K8s Cluster Cost

Calculate the monthly cost of running a self-managed Kubernetes cluster on Hetzner Cloud, Vultr, or DigitalOcean. Choose server types for control planes, workers, and load balancers with HA mode.

Related Generators

Related Comparisons

Related Guides