"How can I connect a StatefulSet in Cluster 1 to a StatefulSet in Cluster 2, both located in different regions? Is there a way to establish communication between StatefulSets across different region clusters?"

Sunil Yadav 25 Reputation points
2024-05-28T08:26:55.85+00:00

"How can I connect a StatefulSet in Cluster 1 to a StatefulSet in Cluster 2, both located in different regions? Is there a way to establish communication between StatefulSets across different region clusters?"

Example -
"I have a Solr instance (StatefulSet) in AKS Cluster 1 and want to connect it to a ZooKeeper instance (StatefulSet) in AKS Cluster 2. While I know it's possible to connect through a service via a private DNS zone, the requirement here is to connect directly to each node resource rather than through the service, due to the distributed nature of the StatefulSet pods. How can I achieve this node-to-node connection between the two clusters?"

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,932 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. SaiSurya Vamsi Sapireddy 0 Reputation points
    2024-05-28T08:36:47.44+00:00

    I think creating a DNS will resolve the issue and configuring both the stateful sets to DNS zone which will be help in cross connection between the cluster and as both the clusters are using same DNS zone there would be no downtime on each of these cluster.

    Step1: Create a DNS zone

    Step2: Create stateful sets for each of these cluster to use DNS

    Step 3: Configure DNS with the both these stateful-sets of two clusters


  2. Miguel Fernández Corral 190 Reputation points
    2024-05-28T09:23:19.17+00:00

    You can use Azure CNI (advanced) networking:

    https://learn.microsoft.com/en-us/azure/aks/concepts-network