GoogleCloudPlatform / k8s-multicluster-ingress

kubemci: Command line tool to configure L7 load balancers using multiple kubernetes clusters
Apache License 2.0
377 stars 68 forks source link

How to debug "failed_to_pick_backend" #215

Closed thezjy closed 5 years ago

thezjy commented 5 years ago

I deployed hasura graphql engine following the guide. Everything works fine except the endpoint keeps returning 502 (I've waited long enough). Logs of load balancer show the error is failed_to_pick_backend. How can I debug this problem?

thezjy commented 5 years ago

The deployment works in a single cluster. The only difference between it and the zoneprinter sample I can see is that hasura uses 8080 containerPort. Does it matter?

pdecat commented 5 years ago

failed_to_pick_backend means that no backend responds to health checks with an HTTP 200 status. You should start by checking the health check configuration on the load balancer.

thezjy commented 5 years ago

Thanks a lot. Changed the health check configuration and everything works ok!