Skip to content
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

Some backend services are in UNHEALTHY state (when using ingress to route to service webhook-eventsource-svc) #2094

Closed
vaporpin opened this issue Jul 22, 2022 · 3 comments
Labels
bug Something isn't working stale

Comments

@vaporpin
Copy link

vaporpin commented Jul 22, 2022

Describe the bug
I tested a set of event source and sensor (instructions from https://argoproj.github.io/argo-events/tutorials/01-introduction/) without creating an ingress, just using port forwarding and the implementation worked.

However when I tried to deploy an GCE class ingress (which automatically creates a external Load Balancer) to route path /argoevents to webhook-eventsource-svc, there is error : "Some backend services are in UNHEALTHY state" namely the [xxxxx-argo-events-webhook-eventsource-svc-xxxxx] backend service. So when I curl http://xx.xx.xx.xx/argoevents, response 404 (backend NotFound), service rules for the path non-existent

my ingress
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-ingress
namespace: argo-events
annotations:
kubernetes.io/ingress.class: "gce"
spec:
rules:
- http:
paths:
- path: /argoevents
pathType: ImplementationSpecific
backend:
service:
name: webhook-eventsource-svc
port:
number: 12000
- path: /v2
pathType: ImplementationSpecific
backend:
service:
name: hello-world-2
port:
number: 80

I created a usual deployment and service resource, hello-world-2 and created another route path v2 to test. I'm able to get a response from the service via the ingress using curl xx.xx.xx.xx/v2, which means that ingress is working.

Anyone can advice on this issue? Thanks!

@vaporpin vaporpin added the bug Something isn't working label Jul 22, 2022
@whynowy
Copy link
Member

whynowy commented Aug 2, 2022

@vaporpin
Copy link
Author

vaporpin commented Aug 3, 2022

@whynowy , thanks for the help.

I created a NodePort service using the doc https://argoproj.github.io/argo-events/eventsources/services/ and managed to trigger the sensor from outside the cluster. Also tried this health check end point and it return OK.

But when the service is routed to the ingress, it states that it is in unhealthy state.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 2, 2022

This issue has been automatically marked as stale because it has not had
any activity in the last 60 days. It will be closed if no further activity
occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Oct 2, 2022
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants