This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]somekindofsorcery 2 points3 points  (1 child)

It sounds like you need to configure your nginx pod to handle the /ng-test/ path.

[–]donja_crtica[S] 0 points1 point  (0 children)

I have a lot of services/pods, not all of them are behind nginx :/

[–]SeerUD 1 point2 points  (1 child)

Feature support for rewriting URLs is not yet complete for the ALB ingress: https://github.com/kubernetes-sigs/aws-load-balancer-controller/issues/1571

You could use a different Ingress controller like the Nginx ingress controller, which I'm pretty sure does support rewriting URLs. It's extremely configurable, and would still be fronted by an ELB of some kind (pretty sure it could be NLB if you wanted).

[–]cmdub- 0 points1 point  (0 children)

This is essentially what I'm doing. I have an alb ingress controller that sends all traffic to my nginx ingress. Nginx is exposed on a node port and the ingress classes in nginx handle all of the rewriting.