-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adapt the nginx.org/rewrites from the official nginxinc helm chart #11124
Comments
This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
And you are already using this https://kubernetes.github.io/ingress-nginx/examples/rewrite/ ? |
Yes but we'd like to have only one ingress resource per domain, but there are multiple services behind it that need different rewrites. Example:
With the
|
Thanks for clarifying. |
Hm, I think we're mixing up things a bit here. What @philipp-durrer-jarowa asks for is the ability to have just one Ingress resource per domain (IIRC we are kind of enforcing that somewhere during validations anyway) with different backends separated by path. In their use case each of those backends requires its own rewrite configuration. Some example requests:
If that's correct, I do not think it's related to the chart but more to how we're rendering rewrites in locations. |
It seems like this controller's one annotation will perform a single rewrite of the target-path to all rules in that ingress. But what is @philipp-durrer-jarowa is asking is a combo like ;
And @Gacko's example is showing a 2nd new ability of even having option to pick different backends for different rewrite operations, all in the same annotation |
That is already covered by the rules matching the according paths. What's not yet covered is the ability to specify a rewrite rule per backend. So in case a requests gets sent to backend A, apply rewrite rule A, if backend b then rewrite rule B and in all the other cases either do nothing or apply a general rewrite rule. I really don't wanna over-engineer things, but that's how I understand the NGINX Inc. documentation. |
This will be a feature for support in HTTP routes https://gateway-api.sigs.k8s.io/guides/http-redirect-rewrite/ We are working on gateway API support and cannot implement this issue in ingress. /close |
@strongjz: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
We have a need to use per-service rewrites like the Nginx Inc. maintained helm chart supports (see https://github.com/nginxinc/kubernetes-ingress/tree/main/examples/ingress-resources/rewrites) however we wouldn't like to switch over to that chart as all our clusters use this chart here, so it would be great if one could adopt the same feature in a
nginx.ingress.kubernetes.io/rewrites
annotation.I haven't found any other issues talking about the same feature.
No specific Kubernetes version needed for this feature.
The text was updated successfully, but these errors were encountered: