nirgn
nirgn

Reputation: 2074

GCP serverless network endpoint group don't show Cloud Run services

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

Upvotes: 5

Views: 1802

Answers (1)

shahar galon
shahar galon

Reputation: 36

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>

Upvotes: 2

Related Questions