-
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
Annotation configuration-snippet not working with basic-auth #3661
Comments
Where are you defining that variable? Keep in mind you cannot create upstreams manually because the load balancing part is being done in lua with configuration sent from the controller (go) |
I'm defining it in annotation too (server-snippet):
|
@AmetPreply if you want to route to an external server, you need to use a service type=ExternalName. |
Closing. This works as expected. The lua balancing cannot be bypassed unless you use a custom template, changing the behavior of |
Ok.
In 0.21.0 default location is:
So my nested locations can't work with new parent location. How can I change my ingress for working with new parent location? |
That is true only if you use the regex annotation. From the output you posted, why are you enabling a regex for |
I set it to false but it still generates such type of location:
|
Ok. I found difference with, |
This is a BUG REPORT
NGINX Ingress controller version: 0.21.0
Kubernetes version:
Environment:
What happened:
After upgrading nginx-ingress to 0.21.0 from 0.19.0 locations in configuration-snippet annotations don't work.
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Use configuration-snippet annotation on 0.21.0 with basic auth.
Anything else we need to know:
If we change location to:
Location works:
The text was updated successfully, but these errors were encountered: