3

I have couple of services on Cloud Run, and I'm trying to create a load balancer to sit in front of them and route the traffic to them based on some path rules.

But, when I create the backend service (and I choose Serverless network endpoint group in Backend type, and I go to create a "Serverless network endpoint group", I choose the region that my Cloud Run services are located in and I don't see them in the service dropdown menu.

The Cloud Run services: enter image description here

The Serverless network endpoint group creation page: enter image description here

I tried every region, and read the GCP docs, and can't figure out why it's happening.

Edit: Before I choose the region, I do see all of my cloud run services, but when I do choose a region the list gets empty: enter image description here

Nirgn
  • 1,879
  • 4
  • 23
  • 28
  • Did you check this link? https://cloud.google.com/load-balancing/docs/https/setting-up-https-serverless – razimbres May 04 '22 at 12:46
  • @razimbres yes. I follow this tutorial when trying to create the load balancer. – Nirgn May 04 '22 at 12:51
  • 2
    I reported the bug to Google yesterday. It's known by Google (Internal number 231158500). You can use the GCLOUD command to create your serverless NEG and bypass the UI bug – guillaume blaquiere May 04 '22 at 13:50

1 Answers1

1

Use the gcloud cli tool in order to create the serverless NEG

gcloud compute network-endpoint-groups create <neg-name> \
  --region=<region> \
  --network-endpoint-type=serverless \
  --cloud-run-service=<serviceName>