Replacing Traefik with HAProxy on AWS
AWS · Kubernetes · HAProxy · Terraform
Building the replacement
I set up HAProxy on Kubernetes, integrated it with the AWS Network Load Balancer, and configured the routes that sent incoming requests to the right applications.
Moving traffic
I pointed the cluster subdomain at HAProxy through Route 53. Once HAProxy was serving the applications, I removed the old Traefik routes, middleware, monitoring, and dedicated node-pool configuration from the infrastructure repository.
Operating HAProxy under load
I investigated health checks, reload behavior, and uneven traffic across pods. When replica counts repeatedly rose and fell, I raised the minimum capacity and configured the autoscaler to wait longer before scaling down.
I built the HAProxy ingress setup, moved application traffic from Traefik, retired the old configuration, and tuned the replacement under production traffic.