Need Help in setting up Cross Cluster replication

Hi Team,

We have a GKE clusters running on East and West independently .

I have deployed Elastic and Kibana through our org Golden images. My team able to do all operation to create indexes etc on east and west.

East configuration i am pasting here,

elastic-search-east.yaml


`< apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: elasticsearch-ews-es-east
  namespace: elks
spec:
  image: us-docker.pkg.dev/******/vendor/elastic/elasticsearch:8.10.0
  version: 8.10.0
  http:
    tls:
      selfSignedCertificate:
        disabled: true
    service:
      spec:
        ports:
        - name: http
          port: 9200
          targetPort: 9200
  nodeSets:
    - name: master
      count: 1
      config:
        node.store.allow_mmap: false
      podTemplate:
        metadata:
          labels:
            Version: 8.10.0
            appVersion: 8.10.0
          annotations:
            eck.k8s.elastic.co/managed: "false"
            sidecar.istio.io/inject: "false"
            traffic.sidecar.istio.io/includeInboundPorts: "*"
            traffic.sidecar.istio.io/excludeOutboundPorts: "9300,443"
            traffic.sidecar.istio.io/excludeInboundPorts: "9300"
        spec:
          securityContext:
            runAsUser: 1000
            fsGroup: 1000
          containers:
            - name: elasticsearch
              resources:
                limits:
                  memory: 4Gi
                  cpu: 1
      volumeClaimTemplates:
      - metadata:
          name: elasticsearch-data
        spec:
          accessModes:
            - ReadWriteOnce
          resources:
            requests:
              storage: 200Gi
          storageClassName: standard
    - name: data
      count: 3
      config:
        node.store.allow_mmap: false
      podTemplate:
        metadata:
          labels:
            Version: 8.10.0
            appVersion: 8.10.0
            app: elasticsearch-data
          annotations:
            eck.k8s.elastic.co/managed: "false"
            sidecar.istio.io/inject: "false"
            traffic.sidecar.istio.io/includeInboundPorts: "*"
            traffic.sidecar.istio.io/excludeOutboundPorts: "9300,443"
            traffic.sidecar.istio.io/excludeInboundPorts: "9300"
        spec:
          securityContext:
            runAsUser: 1000
            fsGroup: 1000
          containers:
            - name: elasticsearch
              resources:
                limits: 
                  memory: 4Gi
                  cpu: 1
      volumeClaimTemplates:
      - metadata:
          name: elasticsearch-data
        spec:
          accessModes:
            - ReadWriteOnce
          resources:
            requests:
              storage: 200Gi
          storageClassName: standard />
`

elastic-virtualervice-east.yaml


apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  name: elks-elasticsearch-vs
  namespace: elks
spec:
  gateways:
  - ilb-gateway/ilb-gateway-elks
  hosts:
  - '*'
  http:
    - match:
        - uri:
            prefix: /
      rewrite:
        uri: /
      route:
        - destination:  
             host: *********
             port:
              number: 9200 

I have similar configuration in west. able to access everything as said before.

Now I want to implement cross cluster replication. If sme one give me steps and example yaml files that will be great help.

I am new to this and seeing your help to setup cross cluster replication.

Your help is greatly appreciated.

Many thanks in advance.

Quick question, do you have a paid license, platinum or enterprise, for both of your clusters?

Cross Cluster Replication is a paid feature and require both clusters to have a paid license.

Hi Leandroj,

Thanks for looking into this . Yes we do have licensee .

thanks
Seshadri