0

I have 2 clusters.

Cluster A which runs my main pods. Using ClusterIP as Service type. Cluster B which runs additional pods. Also using ClusterIP as Service Type

I was wondering if there is anyway we can establish communication between one of the pods in Cluster A to another pod in Cluster B without exposing them as LoadBalancer type?

Currenly, I am using Ingress for user to Pod communication.

Thank You

GCPDB
  • 11
  • 3
  • Which CNI are you using? at least I know cilium offers cluster mesh for such use-cases, https://docs.cilium.io/en/v1.10/gettingstarted/clustermesh/clustermesh/#gs-clustermesh – Qasim Sarfraz Jan 25 '22 at 09:01
  • A pod should never talk to another pod. Pods are abstracted behind services so that Kubernetes can manage pod lifecycles for you. If you mean pod to service then by default, you cannot connect to services in other clusters except either by using nodeport service or load balancer service or another special networking provider. – Luke Briner Jan 25 '22 at 09:05
  • Which Kubernetes version are you using? Which Kubernetes solution are you using - bare metal or some cloud provider solution? Which LoadBalancer solution are you using? Are the clusters configured in the same network? Please add more details to your question about clusters setup and networking, – Mikolaj S. Jan 25 '22 at 18:16

0 Answers0