Access Distinct Clusters

ServiceCenter Aggregate Architecture

In the Multiple Datacenters article, we introduce the aggregation architecture of service center. In fact, this aggregation architecture of service center can be applied not only to the scene deployed in multiple datacenters, but also to the scene services data aggregation in multiple kubernetes clusters.


The service centers deployed in distinct kubernetes clusters can communicate with each other, sync the services data from other kubernetes clusters. Applications can discover services from different the kubernetes cluster through using the service center HTTP API. It solve the problem of isolation between kubernetes clusters.

Quick Start

Let's assume you want to install 2 clusters of Service-Center in different Kubernetes clusters with following details.


To facilitate deployment, we will publish the service address of the service center in [NodePort] mode.

Deploy the Service Center

Using helm to deploy the service center to kubernetes here, the instructions for specific values can be referred to here.

Take deployment to kubernetes cluster 1 as an example.

# login the k1 kubernetes master node to deploy sc1
git clone
cd examples/infrastructures/k8s
helm install --name k1 \
    --set sc.discovery.clusters="sc2=" \
    --set sc.discovery.aggregate="k8s\,servicecenter" \
    --set sc.registry.type="buildin" \
    --set sc.service.type=NodePort \

Notes: To deploy Service Center in kuberbetes cluster 2, you can repeat the above steps and just change the sc.discovery.clusters value to sc1=

Confirm the service is OK

We recommend that you use scctl, and using cluster command which makes it very convenient to verify OK.

# check the sc1 cluster api
scctl --addr get cluster
#   CLUSTER |        ENDPOINTS         
# +---------+-------------------------+
#   sc2     |

# check the sc2 cluster api
scctl --addr get cluster
#   CLUSTER |        ENDPOINTS         
# +---------+-------------------------+
#   sc1     |