Search code examples
google-cloud-platformgoogle-cloud-networkinggoogle-cloud-load-balancer

GCP LoadBalancer - How to Redirect on Failed Health Check


I am currently implementing a blue-green setup in GCE. Essentially what I'm doing is putting an nginx loadbalancer up as a backend to a GCP one, as switching the rules over to hit a different pool in nginx can be done quickly.

If there are no nginx backends available I want to error handle to a custom page held in a bucket but I can't see a clear way to do this with the standard health checks. Has anyone encountered this type of thing before?


Solution

  • If there are no nginx backends available I want to error handle to a custom page held in a bucket

    Google Load Balancers do not provide a feature for this requirement.