I have a k8s ingress with more than 5 backend services behind it. The ingress spawns a GoogleCloud LoadBalancer.
Each of the services is routed traffic to by an http path
rule. Eg. one app is on /foo
, another is on /bar
, etc.
All of them work fine. Then I added a new app, with backend service and routing rule, all the same way as the others.
But I'm constantly getting this error when I hit the URL of the new app:
Error: Server Error
The server encountered a temporary error and could not complete your request.
Please try again in 30 seconds.
When I open the ingress in GCP console, I can see this warning:
and the unhealthy service is the one from my newly added app.
The weird thing is that the app actually does get traffic when I hit the URL. I can see it in the logs. But I still get that 502 error and the backend service is shown as unhealthy.
I am not rly sure how to debug this in order to figure what's the issue.