I want to use a single Kubernetes Ingress in Google Kubernetes Engine (GKE) to handle multiple services and a Google Cloud Storage (GCS) bucket. The goal is to configure one Ingress to manage:
- WebApp served under the /* path
- API served under the /api path
- Bucket assets to be served under the /asset path
Currently, the WebApp and API are being handled by the Ingress. I want to add a backend bucket to the same Ingress to serve static assets from a GCS bucket without creating a second Load Balancer.
Questions:
- Is it possible to directly attach a GCS backend bucket to a Kubernetes Ingress using a Kubernetes manifest?
- If not, has anyone tried alternative approaches or workarounds to achieve this, such as using a proxy in Kubernetes or combining Load Balancer backends?
- What are the best practices for handling this scenario in GKE without adding extra Load Balancers?