Use Google Cloud Storage Bucket with GCE LoadBalancer... not in host and paths

4/16/2018

I'm trying to route traffic to a static bucket on GCE. Right now I am using ingress, but have found the docs for Google here:

https://cloud.google.com/compute/docs/load-balancing/http/adding-a-backend-bucket-to-content-based-load-balancing

I get all the way through, but cannot select the 'backend bucket' while in the hosts and paths menu doing the url mapping... even though it is listed under the backend buckets. The 'Backend Services' options can be selected, but the backend buckets menu is disabled. Does anyone know of a better tutorial, or a better way to route traffic to a bucket for static content?

Can I specify it in the ingress yaml maybe?

-- ThatCampbellKid
google-cloud-storage
google-kubernetes-engine
kubernetes
kubernetes-ingress
nginx

1 Answer

4/18/2018

Specifying "backend buckets" is not supported on GCE Ingress yaml spec currently.

If you modify a load balancer created by the Ingress controller to route some of the traffic to a backend bucket (by editing its URL map), your changes will be periodically overwritten by the Ingress controller.

Your only option is likely to create a separate load balancer for your "backend bucket".

-- AhmetB - Google
Source: StackOverflow