-
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
X-Forwarded-Prefix annotation adding // #3132
Comments
Having reviewed the nginx.conf generated, nginx is adding a trailing / to the path:
Looks like this is a bug in my opinion. |
This works though! Hope this helps anyone else that gets stuck on this like I did. I still consider this a bug, because if I had more than one path / service for this namespace, I would have to create individual ingresses. It might be able to be handled by the application performing the redirect to not append /, but the prefix should be the literal matching string. Any thoughts? |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: 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. |
Following on from a request for help which got closed:
#3119
I was trying to replicate the behaviour of x-forwarded-prefix, and eventually I found that this annotation was added back in December, but it hasn't been added to the docs that I can see?
I'm trying to route on /namespace/ which is current working, for example /default/ will now route to the default/gateway-svc as expected, but in the url, I end up with two //:
default**//**ui/#/
I've played around with the annotations, but I think my application is redirecting to /ui/, not sure where the additional '/' is coming from. If I manually remove one of them from the URL, it works as expected. Any ideas?
The text was updated successfully, but these errors were encountered: