Google Cloud functions not available as a serverless network endpoint except via Cloud Run

175 views Asked by At

I'm trying to configure a Google Cloud Function as a backend for a load balancer.

For that, I'm creating a Serverless network endpoint group, in the same region as the functions.

If I choose the type as Cloud Run, then I can see my functions (which are HTTP-triggered):

I am able to pick a function via Cloud Run

But if I choose the type as Cloud Function, then I can't see my functions, only a message saying "No Cloud Function exists in currently selected region and currently selected project".

The same function isn't visible as a Cloud Function

What are the requirements for a function to be accessible in this context? I've tried deploying --ingress-settings=internal-and-gclb --allow-unauthenticated but it didn't work.

1

There are 1 answers

0
Yvan G. On

Posting Sir @GuillaumeBlaquiere comment as answer just in case other users have the same concern they can use this post as a guidance.

I agree with sir @GuillaumeBlaquiere as I replicate this concern, to use Cloud Function in your Serverless network endpoint group type you need to choose Cloud Run. Once you choose Cloud Run, the name of your Cloud Function will appear under Select Service.

image