Reputation: 801
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.
Upvotes: 0
Views: 978
Reputation: 515
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.
Upvotes: 2