Configure Remote Clusters

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

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

  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

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