Reputation: 359
Is it possible to establish a connection between the pods of a private cluster to another private clusters master in separated regions? Just by adding the pod and node ip range to the other master authorized networks did not do the trick.
Upvotes: 1
Views: 1506
Reputation: 1
This is caused by an issue in GCP: https://issuetracker.google.com/issues/244483997
Upvotes: 0
Reputation: 4909
This won't work. The private master endpoint is a regional resource (essentially an internal Load Balancer which is a regional resource). Since both clusters are private, they won't be able to communicate using external endpoints and cross region requests won't work.
You have 2 options:
Set up a proxy that can forward the requests
use public endpoints and configure a nat (Cloud nat or a unmanaged nat). Secure the public endpoint using Master Authorized Networks to ensure that only authorized IPs are able to access the k8s API
Upvotes: 2