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):
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".
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.
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.