-
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
port 80 is free, but nginx-ingress-controller say already in use #6988
Comments
/remove-kind bug Please show ;
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
#6990 has been merged. let's close this one. /close |
@tao12345666333: 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. |
NGINX Ingress controller version: v0.44.0
Kubernetes version (use
kubectl version
):Environment:
uname -a
): 5.4.0-70-generic Fix #76: hardcode X-Forwarded-Port due to SSL Passthrough #78-Ubuntu SMP Fri Mar 19 13:29:52 UTC 2021 x86_64 x86_64 x86_64 GNU/LinuxWhat happened:
After I restart one node, the ingress can not up because 80 have in used; err log is here
What you expected to happen:
After reboot a node and apiserver up, the ingress also ready to work.
How to reproduce it:
My cluster has 4 nodes, 3 of which are masters, and I used https://docs.cilium.io/en/stable/gettingstarted/kubeproxy-free/ to set up k8s with cilium and setup
DSR
; later used https://github.com/kubernetes/ingress-nginx/tree/master/charts/ingress-nginx deployed ingress-nginxWhen the services are all ready, restart one of the nodes, but after the node restarts, all the original components can be started normally, except for ingress-nginx;
I use NodePort to allow internet visit the ingress.
I used a debug pod just like
kubectl -n nginx debug nginx-ingress-controller-2snsf -it --image=k8s.gcr.io/ingress-nginx/controller:v0.44.0 --share-processes --copy-to=nginx-ingress-controller-2snsf-debug -- bash
try to found what happened.When I use the
netstat -lnt
to see any application listen on 80/443, but nothing here. But when i usecurl 0.0.0.0:80 -vvvv
to get anything, and get other nginx pod response.It seem that the port have been connet by a tunnel.
I read the code and notice https://github.com/kubernetes/ingress-nginx/blob/master/internal/net/net.go#L31
the function try to connect the port to ensure nginx can listen on it. I think maybe try to bind the port, or we got the problem here.
Anything else we need to know:
English is not my mother language, sorry for that.
/kind bug
The text was updated successfully, but these errors were encountered: