I was wondering if there was a way, using the kong ingress controller in kubernetes, of rewriting the path of a request at the ingress level.
I saw that you can use the “route.proxy” in the KongIngress object to change the path of a request, for example:
But that only works when the KongIngress is attached to a service.
In my case, i have multiple Ingresses that have the same Service as a backend, and i’m trying to rewrite the path on each ingress to another path:
- Ingress 1: /foo -> service/bar
- Ingress 2: /somepath -> service/anotherpath
I tried using the url-rewrite plugin but couldn’t make it work.
Is there some feature or plugin that i’m missing, or there is no support to do this?
I am using Kong version 1.3.0 in DBless mode, and Kong ingress controller version 0.5.0)