-
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
Frequent Nginx reloads with rewrite-target #3843
Comments
@yvespp please check the release notes for 0.22.0 https://github.com/kubernetes/ingress-nginx/releases/tag/nginx-0.22.0
|
Sorry, didn't see that. |
I still encounter constant reloads using 0.24.1 in combination with version 0.21 did not have this issue. Simple ingress example that will trigger the issue. We have several ingress rules with way more complex configuration snippets, so we basically cannot create our rules without using this approach.
-v=2 log entry
|
I looks like using this notation causes a constant reload
while this does not (just pass the whole section in as a string, line breaks and white spaces does not matter)
|
I see this issue on new install. No rules, Just added ingress deployment I0524 19:16:42.743650 9 controller.go:170] Configuration changes detected, backend reload required. |
Is this a request for help?: No
What keywords did you search in NGINX Ingress controller issues before filing this one? rewrite-target
Is this a BUG REPORT or FEATURE REQUEST?: BUG REPORT
NGINX Ingress controller version: 0.23.0
Kubernetes version (use
kubectl version
): v1.13.4Environment:
uname -a
): 3.10What happened:
After updating form 0.21.0 to 0.23.0 I noticed that the ingress pods use more CPU and memory than before. I then turned the logging to
--v=2
to see if full reloads are happening. I can see that rewrite rules are being changed frequently, examples:What you expected to happen: No non dynamic reloads should happen as nothing changed.
How to reproduce it:
I'm not sure, we have a few Ingress resources that use
nginx.ingress.kubernetes.io/rewrite-target
.On Ingress is a bit special as the same host has two rewrites (in two Ingress resources). This would also match with the diff from above.
Anything else we need to know:
The text was updated successfully, but these errors were encountered: