# Installing ElasticSearch via Helm without VolumeClaim using existing volumeMount?

**URL:** <https://discuss.elastic.co/t/installing-elasticsearch-via-helm-without-volumeclaim-using-existing-volumemount/322532>\
**Category:** Elasticsearch\
**Created:** [January 5, 2023, 10:47am UTC](https://discuss.elastic.co/t/installing-elasticsearch-via-helm-without-volumeclaim-using-existing-volumemount/322532 "2023-01-05T10:47:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cawoodm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cawoodm/32/14083_2.png) [@cawoodm](https://discuss.elastic.co/u/cawoodm)\
**Post date:** [January 5, 2023, 10:47am UTC](https://discuss.elastic.co/t/installing-elasticsearch-via-helm-without-volumeclaim-using-existing-volumemount/322532/1 "2023-01-05T10:47:24Z")

</div>

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:

```yaml
          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:

```yaml
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](https://www.elastic.co/guide/en/cloud-on-k8s/master/k8s-volume-claim-templates.html) 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`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 2, 2023, 10:47am UTC](https://discuss.elastic.co/t/installing-elasticsearch-via-helm-without-volumeclaim-using-existing-volumemount/322532/2 "2023-02-02T10:47:52Z")

</div>

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