-
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
Why nginx controller is trying to connect the application pod not service ? #8079
Comments
@tholvoleak: 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/test-infra repository. |
Change the service web to --type clusterIP
Thanks,
; Long
…On Tue, 28 Dec, 2021, 10:09 AM Kubernetes Prow Robot, < ***@***.***> wrote:
@tholvoleak <https://github.com/tholvoleak>: This issue is currently
awaiting triage.
If Ingress contributors determines this is a relevant issue, they will
accept it by applying the triage/accepted label and provide further
guidance.
The triage/accepted label can be added by org members by writing /triage
accepted in a comment.
Instructions for interacting with me using PR comments are available here
<https://git.k8s.io/community/contributors/guide/pull-requests.md>. If
you have questions or suggestions related to my behavior, please file an
issue against the kubernetes/test-infra
<https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:>
repository.
—
Reply to this email directly, view it on GitHub
<#8079 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGZVWTIHYLNURA4JNOHRUTUTE5RFANCNFSM5K3N75WQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
/close |
I have changed, but still does not working. i updated info above |
Hi, this is a basic functionality of the ingress-nginx-controller. So its not a bug and it seems like you are asking for support. Please discuss in the ingress-nginx-users channel at kubernetes.slack.com. You can register if required at slack.k8s.io . Later if you find a bug or a problem, you can reopen this issue. So i will close for now. Thanks. /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/test-infra repository. |
Hi brother, As it's a basic functionality of the ingress-nginx-controller. how to allow ingress-nginx-controller to application pod? because it's unreachable. I thought the flow is ingress-nginx-controller -> service -> pod. |
Please discuss in the ingress-nginx-users channel at kubernetes.slack.com. You can register if required at slack.k8s.io . |
I've got this issue in bare-metal (Fedora) microk8s setup. To troubleshoot your issue you can post output of next command and upload log here:
|
The logs:
means that nginx is accessing at application since the endpoint This socket, is the endpoint of you service. You can see it, do it:
In this case, is the endpoints of service For test it, entry in the pod of ingress controller and checks the connection.
As we see exactly , this cannot access. You look that IP has the service
And as we see, the pod has access. With the ClusterIP and Port of the service. So that a solution would be do the follow. You must tell at Ingress, that uses the ClusterIP:port instead of use endpoints list of ingress controller. For this you edit the Ingress resource and add the follow
FYI Service Upstream¶By default the Ingress-Nginx Controller uses a list of all endpoints (Pod IP/port) in the NGINX upstream configuration. The This can be desirable for things like zero-downtime deployments . See issue #257. Known Issues¶If the
|
thank you. |
Hi, I have set up RKE Kubernetes cluster, I have tried to deploy an application and create ingress to expose external access. but I got an issue with "502 Bad Gateway".
cat nginx-app.yml
cat nginx-service.yml
cat nginx-ingress.yml
kubectl get pod -o wide
kubectl get svc -o wide
kubectl get ingress -o wide
curl http://10.*.*.207/demo
Error logs of pod nginx-ingress controller
I wonder why nginx controller is trying to connect the application pod nginx-app (upstream: "http://10.42.0.16:80/demo"") not service nginx-service ???
The text was updated successfully, but these errors were encountered: