opensearch-project / helm-charts

:wheel_of_dharma: A community repository for Helm Charts of OpenSearch Project.
https://opensearch.org/docs/latest/opensearch/install/helm/
Apache License 2.0
170 stars 228 forks source link

[BUG][OpenSearch] Unable to use existing PVC in Opensearch value #517

Open Uritassa opened 7 months ago

Uritassa commented 7 months ago

Hi, I’m encountering an issue where I cannot attach a volume to the OpenSearch master pod. Instead, it attempts to create a new PVC. I have a Helm chart with the following values for OpenSearch:

  persistence:
    enabled: true
    existingClaim: opensearch-data

I also tried these values


  persistence:
    enabled: true
    volumeClaimTemplates:
      - metadata:
          name: opensearch-data

Additional Information:

Helm chart version: latest
Kubernetes version: 26+
Opensearch version: latest

Environment:

Kubernetes cluster type: EKS
Operating system: AL2023
Helm version: 3.0+
Nawazsk89 commented 7 months ago

Hi,

I am also facing same issue. Can you please update if you found a solution?

prudhvigodithi commented 6 months ago

[Triage] Thanks @Uritassa, @Nawazsk89. Have you guys tried creating a PV and PVC with same labels and then deploy the helm chart? This should not create new PVC's and use the existing ones that are pre-created. As an enhancement we can have a flag useExistingVolumes in chart to do the same, please let us know if you guys are interested to contribute this? Thanks