Installing ElasticSearch via Helm without VolumeClaim using existing volumeMount?

We want to install Elasticsearch via helm chart and provide our own volumeMount. We don't really want to have anything to do with PVCs.

Ideally the resulting container should have something like:

          volumeMounts:
          - mountPath: /usr/share/elasticsearch/data
            name: data
      volumes:
      - name: data
        hostPath:
          path: /mnt/nfs/our/store/

It would appear we can use extraVolumes and extraVolumeMounts as such:

extraVolumes:
  - name: data
    hostPath:
      path: /mnt/nfs/our/store/
extraVolumeMounts:
  - mountPath: /usr/share/elasticsearch/data
    name: data

But how do we "disable" the PVC claim?

The documentation is somewhat vague:

The name of the volume claim must always be elasticsearch-data. If you chose a different name you have to set up a corresponding volume mount matching the data.path yourself ( /usr/share/elasticsearch/data by default).

Does this mean we just set volumeClaimTemplates.metadata.name: foo and it will use our extraVolumes and extraVolumeMounts

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