# Configure Remote Clusters

**URL:** <https://discuss.elastic.co/t/configure-remote-clusters/346571>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [November 6, 2023, 9:18pm UTC](https://discuss.elastic.co/t/configure-remote-clusters/346571 "2023-11-06T21:18:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![biancoda](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@biancoda](https://discuss.elastic.co/u/biancoda)\
**Post date:** [November 6, 2023, 9:18pm UTC](https://discuss.elastic.co/t/configure-remote-clusters/346571/1 "2023-11-06T21:18:17Z")

</div>

So, I'm trying to configure the remote cluster connections. But I believe I'm missing something.  
I'm following this instructions:

- [Remote clusters | Elastic Cloud on Kubernetes [2.9] | Elastic](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-remote-clusters.html)

I have 2 different ES clusters on 2 different kubernetes and I would like them to see each other.  
Here is where I got confused, I understand I have to duplicate the configuration for both cluster.

Lets call it cluster-one and cluster-two, basically both cluster would have the same configuration

```auto
  transport:
    service:
      metadata:
        annotations:
          external-dns.alpha.kubernetes.io/hostname: elasticsearch-transport.my.domain.com
          service.beta.kubernetes.io/aws-load-balancer-type: "nlb"
          service.beta.kubernetes.io/aws-load-balancer-internal: "true"
          service.beta.kubernetes.io/aws-load-balancer-scheme: "internal"
          service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: "*"
          service.beta.kubernetes.io/aws-load-balancer-subnets: "MY_SUBNETS"
      spec:
        type: LoadBalancer
        externalTrafficPolicy: "Local"
    tls:
      certificate:
        secretName: elasticsearch-my-domain
      certificateAuthorities:
        configMapName: remote-certs

```

I have a couple of questions:

- I have to share the certificates and expose the transport layer on both cluster?
- Should I change the DNS name of should I use the same as elasticsearch?
- This would create a new LB, would it be possible to add the port to the http service and use the same LB?

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 4, 2023, 9:18pm UTC](https://discuss.elastic.co/t/configure-remote-clusters/346571/2 "2023-12-04T21:18:24Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
