Skip to content

EKS Auto Mode Ingress ALB Transforms (URL & host header rewrite)

0

Hello, I have configured an Application Load Balancer with an IngressClass as described in Create an IngressClass to configure an Application Load Balancer.

Everything is working fine, but I would like to configure URL rewrites, a feature that has recently been added to Application Load Balancers: Introducing URL and host header rewrite with AWS Application Load Balancers.

I know in Auto Mode the ingress configuration is slightly different than the AWS Load Balancer Controller, but there it's already possible to define URL rewrites with the transforms annotation. I tried using it with Auto Mode, but it did not work.

How can I achieve the same in Auto Mode? Or do you know if there are plans to add it?

3 Answers
0

http://kubernetes-sigs.github.io/aws-load-balancer-controller/latest/guide/ingress/annotations/#transforms Search for alb.ingress.kubernetes.io/transforms.my-service

I could not get it to work, let me know if it works for you

answered a year ago

0

Auto Mode doesn't support it, and according to my AWS rep they "don’t have a timeline for this feature".

answered 10 months ago

-2

In EKS Auto Mode, the approach to configuring Application Load Balancers (ALBs) is streamlined compared to the AWS Load Balancer Controller. However, based on the available documentation, there doesn't appear to be explicit support for URL rewrite transforms in EKS Auto Mode's ingress configuration yet.

EKS Auto Mode automatically provisions and configures AWS load balancers based on annotations you specify in your Kubernetes resources. For ALBs, you create an IngressClass with the controller set to eks.amazonaws.com/alb and then create Ingress resources that use this IngressClass.

The current documentation for EKS Auto Mode shows support for basic ALB configuration annotations such as:

  • alb.ingress.kubernetes.io/scheme: internet-facing
  • alb.ingress.kubernetes.io/target-type: ip

However, there's no specific mention of support for the transforms annotation that would enable URL rewrites in the EKS Auto Mode documentation.

While AWS Application Load Balancers do support URL and host header rewrite capabilities natively, allowing for path manipulation without code changes, this functionality doesn't appear to be exposed through annotations in the current EKS Auto Mode implementation.

Since EKS Auto Mode is relatively new and continues to evolve, it's possible that support for URL rewrite transforms may be added in future updates. For now, if URL rewriting is critical for your application, you might need to consider alternative approaches or continue using the AWS Load Balancer Controller which has documented support for the transforms annotation.
Sources
Deploy a Sample Load Balancer Workload to EKS Auto Mode - Amazon EKS
Route application and HTTP traffic with Application Load Balancers - Amazon EKS
Quickstart: Deploy a web app and store data - Amazon EKS
Introducing URL and host header rewrite with AWS Application Load Balancers | Networking & Content Delivery

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.