Making elasticdb container persistant in EKS

Hi,

We are deploying the Elasticsearch and one of the container is for elasticdb. the default location for the database is under "/usr/share/Elasticsearch" it creates a data directory and database is created here. How to change this default location to a mounted volume path so that it can be persistent over upgrade.

We added as below in deployment.yaml
<
volumeMounts:
- mountPath: /Elasticsearch/data
name: elasticdb-data

volumes:

  • name: elasticdb-data
    hostPath:
    path: /data
    />

But still the data base is not created here. kindly suggest if any parameter needs to be updated.

Are you using the ECK operator? If not I would recommend doing that and then the operator would generate a PersistentVolumeClaim for you that you adjust to your needs as documented here Volume claim templates | Elastic Cloud on Kubernetes [1.9] | Elastic

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