Home > Enterprise >  How to make config folder shared across all ES nodes
How to make config folder shared across all ES nodes

Time:01-08

We are setting up the ES on the GKE cluster using the installation steps provided in https://artifacthub.io/packages/helm/elastic/elasticsearch/7.6.2

We are planning to introduce a synonyms.txt inside the /usr/share/elasticsearch/config/ folder.

any one has idea how it can be made.?

CodePudding user response:

I found the solution myself.,

  1. I wanted to install a specific version of ES which is 7.9.2.
  2. I created a values.yaml with a shared mount of Persistent volume with below content.

---
extraVolumes: |
   - name: essynonyms
     persistentVolumeClaim:
       claimName: synonyms-files-nfs-pvc

extraVolumeMounts: |
   - name: essynonyms
     mountPath: /usr/share/elasticsearch/config/analysis

  1. Install the helm using below command. I have created with three replica. helm upgrade --wait --timeout=600s --install --version 7.9.2 --values ./values.yaml arc-elasticsearch elastic/elasticsearch --set repl icas=3

  2. Install the NFS using the setup procedure provided in the below line NFS Installation Procedure

  3. Place the Synonyms file in the NFS location , It will be available across all the ES nodes.

  •  Tags:  
  • Related