-
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
/etc/nginx/nginx.conf don't apply changes when ingress's annotations update #2635
Comments
You're right, /kind bug |
Version 0.29 Seems pretty serious. I just added a body-size change in an Ingress spec that was never reflected into the controller pod (it wasn't restarted, nginx config wasn't updated):
I'm assuming that if I made as similar change using the Ingress ConfigMap, it would work better? Assuming those changes are periodically looked for, and we don't have to restart the controller pod to get that read. I'm a bit new to this. Is the nginx-configuration ConfigMap in the ingress-nginx namespace a probable workaround, and are edits there picked up? |
@ObviousDWest it seems that you were reading the wrong documentation, because this annotation is not supported: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/ |
Thanks, yes, I've switched to using
(from here: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#custom-max-body-size) and had more luck. What confused me were these links: I must have scroll-blindness, because I found it very hard to see any difference between what was being referred to by nginx.com (ingress controller) vs kubernetes/ingress-nginx. Are there two competing controllers with similar names? |
@ObviousDWest yes, those are two unrelated projects. The one you were referring to in your original question is developed by NGINX inc., while the project we are currently discussing is maintained by the Kubernetes community. |
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/.):
No
What keywords did you search in NGINX Ingress controller issues before filing this one? (If you have found any duplicates, you should instead reply there.):
annotations change
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT
NGINX Ingress controller version:
image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.15.0
Kubernetes version (use
kubectl version
):Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.2", GitCommit:"5fa2db2bd46ac79e5e00a4e6ed24191080aa463b", GitTreeState:"clean", BuildDate:"2018-01-18T10:09:24Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.2", GitCommit:"5fa2db2bd46ac79e5e00a4e6ed24191080aa463b", GitTreeState:"clean", BuildDate:"2018-01-18T09:42:01Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
Environment:
uname -a
): Linux master1 3.10.0-693.el7.x86_64 Basic structure #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/LinuxWhat happened:
I have wrote a
nginx-ingress.yaml
as follows:kubectl apply -f nginx-ingress.yaml
. And I see/etc/nginx/nginx.conf
in ingress-controller pod being update. Thelocation{}
server-snippet is added to the server configuration block. It works as expect.Then I update
nginx-ingress.yaml
:location ~* /aaaa
changes tolocation ~* /bbbb
. Runkubectl apply -f nginx-ingress.yaml
. We can see the ingress object being changed bykubectl get ingress -o yaml
. But the configuration (/etc/nginx/nginx.conf) don't apply this change. It still showslocation ~* /aaaa
What you expected to happen:
nginx configuration file(/etc/nginx/nginx.conf) in ingress controller apply my changes on ingress annotations.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:
Every step as described above do not cause any failure. Ingress controller's log shows that
Event(v1.ObjectReference{Kind:"Ingress", Namespace:"default", Name:"nginx-ingress", UID:"73a54956-6d89-11e8-a186-080027e6c129", APIVersion:"extensions", ResourceVersion:"363720", FieldPath:""}): type: 'Normal' reason: 'UPDATE' Ingress default/nginx-ingress
The text was updated successfully, but these errors were encountered: