Is it possible in GCP to create an internal load balancer that balances the traffic between two Compute Instances in different regions?
Two instances (written NAT on them) are in different regions (e.g one in us-central1
and other in asia-south1
) serving something on the same ports and the internal load balancer (e.g with IP: 170.0.0.4
) is accepting requests from the clients and forwarding them to these VMs.
This would help in creating a highly available service (NAT in this case) that will work even when one VM or the service or region is down.
EDIT:
Adding some more details here:
- Both VMs and the Load Balancer have internal IPs.
- Both VMs and the Load Balancer are in the same VPC network
- I need a layer 7 (HTTP(S)) internal lLoad balancer.