I want to create a second elastic cluster for testing and view the data in Kibana.
My end goal is to setup fluentd so i can store the logs in elastic search and view them on kibana. But i think i should do this on a second elastic cluster to see how it works.
The first/initial elastic cluster was setup uising the following:
--- kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: es-gp2 provisioner: kubernetes.io/aws-ebs parameters: type: gp2 reclaimPolicy: Delete --- apiVersion: elasticsearch.k8s.elastic.co/v1beta1 kind: Elasticsearch metadata: name: data-es spec: version: 7.4.2 spec: http: tls: certificate: secretName: es-cert nodeSets: - name: default count: 2 volumeClaimTemplates: - metadata: name: es-data annotations: volume.beta.kubernetes.io/storage-class: es-gp2 spec: accessModes: - ReadWriteOnce storageClassName: es-gp2 resources: requests: storage: 10Gi config: node.master: true node.data: true node.ingest: true node.store.allow_mmap: false xpack.security.authc.realms: native: native1: order: 1 --- apiVersion: kibana.k8s.elastic.co/v1beta1 kind: Kibana metadata: name: data-kibana spec: version: 7.4.2 count: 1 elasticsearchRef: name: data-es
To what extent, can i (should i) extend the above to have a second elastic cluster.
- Is it possible for me to simply create a new
kind: Elasticsearchchange the name to something more descriptive of a second cluster e.g cluster-2.
- Is it possible to point to a new storage for the new cluster-2 ? or should i use the existing storage.
- Is it possible to use the same kibana instance to view data across multiple clusters because i can see the kibana definition has an
elasticsearchRefwhich is a reference to a single cluster.