Jan Schumacher
Jan Schumacher

Reputation: 359

Connection from private cluster pods to another private clusters master

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

Answers (2)

Koren Lev
Koren Lev

Reputation: 1

This is caused by an issue in GCP: https://issuetracker.google.com/issues/244483997

Upvotes: 0

Patrick W
Patrick W

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:

  1. Set up a proxy that can forward the requests

  2. 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

Related Questions