简体   繁体   中英

GCP: Trying to hit an Internal load balancer (internal IP) from Cloud Function

We have 3-4 services which we deploy via Instance Groups on GCP. We use an internal HTTP load balancer to allow access to these services within the.network.

Now we also have some independent Cloud Functions running in the same project. We are looking to hit the internal load balancer IP from these cloud functions. We are able to hit directly the IPs of VMs from cloud function by setting up a serverless VPC as described in this blog . However calls to load balancer are not happening. Are we missing some other firewall rules to be configured? Any suggestions are appreciated.

Solution :

The Cloud Function, Serverless VPC and internal Load Balancer have to be in the same region. By placing all of them in same region we were able to solve the issue.

Keep in mind, the Cloud Function, Serverless VPC, and internal Load Balancer have to be in the same region . By placing all of them in the same region, you could solve the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM