I have a Load Balancer setup that routes traffic to multiple Cloud Storage buckets and an instance group for backend. The buckets seem to work fine but I just can't get the instance group to work. The instance works fine when I use it's public IP. But it just won't work through the load balancer.
This is my second time setting up the exact same deployment so not entirely sure where I went wrong. I looked at the documentation for troubleshooting, looks like something is wrong with my health check.
I have configured a health check which should work though, I set it to http port 80 / path. My server is returning 200 response code for that but for some reason, in the load balancer page, I can see the column "healthy" as 0/0 and in the backend service page, I can see 0 of 1 instances healthy.
I even tried adding firewall rules for health check but still no luck.
Then I tried to get the health status using cloud shell and I get an empty status, not even failed, just empty. below is the result I got from cloud shell
backend: https://www.googleapis.com/compute/v1/projects/project-name/zones/asia-southeast1-b/instanceGroups/prod-instance-group status:
kind: compute#backendServiceGroupHealthkind: compute#backendServiceGroupHealth