-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG][OpenSearch] Unable to use existing PVC in Opensearch value #517
Comments
Hi, I am also facing same issue. Can you please update if you found a solution? |
[Triage] |
Hi, same problem here. Not being able to bind the statefulset of the opensearch to an already existing volume. My target is to assign a different Anyway by trying the approach of creating a new persistent volume associated to the new storage class and use it in the opensearch statefulset is not working. Helmfile: - name: opensearch
namespace: some-namespace
createNamespace: true
chart: opensearch/opensearch
version: v2.27.0
values:
- clusterName: "opensearch-cluster"
nodeGroup: "master"
masterService: "opensearch-cluster-master"
roles:
- master
- ingest
- data
- remote_cluster_client
replicas: 1
minimumMasterNodes: 1
extraEnvs:
- name: DISABLE_SECURITY_PLUGIN
value: "true"
image:
repository: "opensearchproject/opensearch"
tag: "2.18.0"
pullPolicy: "IfNotPresent"
persistence:
enabled: true
storageClass: local-path-retain # name of my custom storageClass
existingVolume: opensearch-data-volume # name of my custom persistent volume
accesModes:
- ReadWriteOnce
labels:
enabled: true
size: 10Gi My persistent volume: apiVersion: v1
kind: PersistentVolume
metadata:
name: opensearch-data-volume
labels:
type: local
spec:
storageClassName: local-path-retain
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/var/opt"
My storage class: apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-path-retain
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: csi-driver.example-vendor.example
reclaimPolicy: Retain # default value is Delete
allowVolumeExpansion: true # with local path will not do anything
mountOptions:
- discard # this might enable UNMAP / TRIM at the block storage layer
volumeBindingMode: WaitForFirstConsumer
parameters:
guaranteedReadWriteLatency: "true" # provider-specific |
One other approach we can try is:
This way the concept of the reusing the existing PV which holds the actual data is satisfied. Thank you |
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:
I also tried these values
Additional Information:
Environment:
The text was updated successfully, but these errors were encountered: