Routing ALB Traffic With A Header

Say you’re using the AWS LB Controller and want to route traffic to specific hosts based on a header.

You can do that with some annotations on your ingress. See these docs.

This is useful if you want to route traffic to different Kubernetes services. For example, you might have two versions of a service, each with different sets of feature toggles. You send everybody that doesn’t have a header set to the default service, and requests with the header set to your experiment service.


Master GitHub Actions with a Senior Infrastructure Engineer

As a senior staff infrastructure engineer, I share exclusive, behind-the-scenes insights that you won't find anywhere else. Get the strategies and techniques I've used to save companies $500k in CI costs and transform teams with GitOps best practices—delivered straight to your inbox.

Not sure yet? Check out the archive.

Unsubscribe at any time.