I followed the instructions here to setup the load balancer:
https://cloud.google.com/nodejs/getting-started/run-on-compute-engine#multiple_instances
My instances work fine, they are accessible via inst.ance.ip.addr:8080 and send a 200 at the root
The load balancer shows:
Error: Server Error
The server encountered a temporary error and could not complete your request. Please try again in 30 seconds.
Also the health-check always returns UNHEALTHY:
$gcloud compute backend-services get-health api-service
shows:
backend: https://www.googleapis.com/compute/v1/projects/#####/zones/us-central1-f/instanceGroups/api-server status: healthStatus: - healthState: UNHEALTHY instance: https://www.googleapis.com/compute/v1/projects/#####/zones/us-central1-f/instances/api-server-jg2e port: 8080 - healthState: UNHEALTHY instance: https://www.googleapis.com/compute/v1/projects/#####/zones/us-central1-f/instances/api-server-taxd port: 8080 kind: compute#backendServiceGroupHealth
I repeated the setup process like twenty times, from creating the template to the firewall rules. No errors at all while doing so. I coud verify all in the ui of the google cloud console.
I'm going crazy.