Search code examples
kubernetesgoogle-cloud-platformmicroservicesload-balancinggoogle-kubernetes-engine

Kubernetes - Discover and access another cluster service like self-hosted


What I want

  • ClusterA have PodA
  • ClusterB have ServiceB select PodB in namespace:default
  • In GKE(Google Kubernetes Engine)

PodA in ClusterA can access ServiceB in clusterB like api.default.svc.cluster.clusterB.

Solutions I tried


Any solutions or ideas are appreciated! A example will be better.


Solution

  • I found three solutions for this. For multi-cluster kubernetes architecture.

    I chose Linkerd. Pretty easy to setup, good latency and good documents.

    I also wrote an article in Chinese if someone interested. https://rammusxu.github.io/2020/07/28/Linkerd-Multi-Kubernetes-Cluster-Feature-Overview/