2
votes

I'm trying to create a multi-region Google Cloud Run setup and can't find any documentation.

My goal is creating an Google HTTPS Load Balancer and map the targets as my 3 Google Cloud Run instances.

https://lb.test.com/ > 

eu.test.com > Europe Cloud Run
na.test.com > North America Cloud Run
sa.test.com > South America Cloud Run

Problem is, I can't find the option of mapping my HTTPS load balancer into my Cloud Run instances.

If this is not possible yet, can I use an external DNS LB such as AWS Route 53?

Thanks!

3
Stuff are in progress. Stay tuned!!!! - guillaume blaquiere
Please consider picking an answer. - ahmet alp balkan

3 Answers

4
votes

Mapping load balancer to cloud run is possible now. This can be achieved by creating NEGs (Network Endpoint Groups) which points to a cloud run service.

I have implemented this today, and came across this thread. To find out how to implement this follow instructions in

https://cloud.google.com/load-balancing/docs/negs/setting-up-serverless-negs#creating_the

0
votes

I do not think you can use a Google HTTPS Load Balancer to make cloud run service multiregional (HTTPS Load Balancer supports only compute engine vm as backend). Your question was very interesting and I did some research.

The only useful documents I found about this topic:

Running Multi-Region Apps on Google Cloud (Cloud Next '19).

Going Multi-Regional in Google Cloud Platform

They are explaining how you can make a cloud service multiregional using Apigee (some proxy servers HA Proxy, Nginx).

0
votes

I have recently published a guide on this on our official documentation: http://cloud.google.com/run/docs/multiple-regions

The solution involves adding the newly introduced "Serverless Network Endpoint Groups" as backends to your load balancer.