-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Nginx-controller re-loads its config when TCP proxied endpoints change #9373
Comments
@troodes, the connection from the controller pod to a new endpoint has to be re-established, I am assuming. /remove-kind bug |
/assign @rikatz We need to review if the lua code that is responsible for the hot reload on HTTP but not TCP so we need to investigate that. |
This issue has not been updated in over 1 year, and should be re-triaged. You can:
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/ /remove-triage accepted |
The tcp/udp proxy feature is being deprecated #11666, so this issue can not track any action items hence closing it. /close |
@longwuyuan: 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-sigs/prow repository. |
What happened:
We use the ingress-nginx to proxy several TCP ports, as well as HTTP services. By "TCP proxied ports", I mean this: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/exposing-tcp-udp-services.md
I'm noticing nginx config reloads happen when endpoints of the proxied TCP services change, but no reloads occur when HTTP proxied endpoints change. Based on https://kubernetes.github.io/ingress-nginx/how-it-works/ I would expect reloads to not happen on endpoints status changes, but that doesn't appear to be the case for the TCP proxied endpoints.
What you expected to happen:
Ideally, no reloads would happen, similar to the way it is handled for HTTP proxied service endpoints.
NGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.):
Kubernetes version (use
kubectl version
):kubectl version: 1.23.7
Environment:
baremetal, Red Hat Enterprise Linux release 8.6
How was the ingress-nginx-controller installed:
# helm ls -A | grep -i ingress nginx-ingress default 3 2022-11-30 14:18:32.16446935 -0500 EST deployed ingress-nginx-4.1.2 1.2.0
How to reproduce this issue:
Expose a TCP port, as described here: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/exposing-tcp-udp-services.md
For a proxied TCP service, restart the pod of the app associated with it
Observe the following in the nginx logs:
I'm seeing 2x reloads happen when the TCP endpoint goes down, and then comes back up presumably?
In my case, frequent reloads are leading to OOM problems, but at this point I'm just trying to figure out if re-loads should be expected for TCP proxied ports?
The text was updated successfully, but these errors were encountered: