-
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
After Modified service targetPort, the targetPort not sync to cooresponing backend #11863
Comments
This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The 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. |
Its possible that you are trying to change the default ports 80/443 of the controller. But the information you have provided requires readers to guess your goal and there is no data like logs and output of Check the template of a new bug report and then edit the issue description here to provide answers to the questions asked in a new bug report. That could help readers get data for analysis and hence make helpful comments to solve your problem. /remove-kind bug |
@longwuyuan 2、Then just edit the targetPort of svc to 2222. 3、Then use kubectl exec deployment/nginx-ingress-controller -n kube-system -- /dbg backends get default-nginx-svc-8080 to check if the backends are still the original 1111. The endpointslices.go still retrieves the old endpointslices, rather than the endpointslices for port 2222. |
@zmquan @zengyuxing007 you are not giving the info suggested and asked in the new bug report template. Please wait for someone who reads this can understand your problem and make comments to help you solve it. |
@zmquan @zengyuxing007 I am closing this as that PR is merged /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. |
Sorry I missed that the merge was into @zmquan fork. /reopen |
@longwuyuan: Reopened 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. |
@zmquan @zengyuxing007 the data here seems that you changed the targetPort of a service and queried the controller for status change. That test is not enough data to explain any problems for taking a action. The information you provided does not have proof that your backend did not have a listening socket on the new port number. Also there is no proof that there was no network problem in your cluster. I think you may be reporting a real-work use problem, but you have to also help out by providing complete detailed information to other readers here, so that some practical and useful action can be taken. If you can use a kind cluster to reproduce the problem and provide all detailed step-by-step instructions to re-create the problem, then it will help. Please provide the info like Now, since in the PRs visible here, you seem to be attempting to increase the timeout period, it is proof that you are choosing the delay interval that applies to your use case. That delay interval may not apply to all other users. Otherwise several users of the controller would have reported the exact same problem. Further-more there is no e2e-test to verify how it will impact the controller. Being a community project, detailed info is helpful to reduce time & effort by the volunteers who work in their free time. I will close the issue for now as there is no action-item being tracked here for you or the project. Once you have provided the step-by-step guide to reproduce a problem at will, by anyone, using your guide, on a kind cluster, please re-open the issue. /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:
After Modified service targetPort, the targetPort not sync to cooresponing backend
but the cooresponing backends port not be synced.
What you expected to happen:
the coorespoing backend port is synced to 8336
From the log information, we can see the detailed processing of the service update event, and ultimately, the backend update is ignored.
NGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.):
v1.10.4
Kubernetes version (use
kubectl version
):v1.22.15
Environment:
uname -a
):Please mention how/where was the cluster created like kubeadm/kops/minikube/kind etc.
kubectl version
v1.22.15
kubectl get nodes -o wide
Anything else we need to know:
The text was updated successfully, but these errors were encountered: