add support set subPath for persistence and snapshotPersistence (#271)

This commit is contained in:
Asutorufa
2025-03-13 20:33:52 +09:00
committed by GitHub
parent 420db63ff6
commit ee3a033dbc
2 changed files with 14 additions and 0 deletions

View File

@@ -57,8 +57,14 @@ spec:
volumeMounts:
- name: {{ .Values.persistence.storageVolumeName | default "qdrant-storage" }}
mountPath: /qdrant/storage
{{- if .Values.persistence.storageSubPath }}
subPath: "{{ .Values.persistence.storageSubPath }}"
{{- end }}
- name: {{ .Values.snapshotPersistence.snapshotsVolumeName | default "qdrant-snapshots" }}
mountPath: /qdrant/snapshots
{{- if .Values.snapshotPersistence.snapshotsSubPath }}
subPath: "{{ .Values.snapshotPersistence.snapshotsSubPath }}"
{{- end }}
{{- if and .Values.snapshotRestoration.enabled .Values.snapshotRestoration.pvcName }}
- name: qdrant-snapshot-restoration
mountPath: {{ .Values.snapshotRestoration.mountPath }}
@@ -171,6 +177,9 @@ spec:
volumeMounts:
- name: {{ .Values.persistence.storageVolumeName | default "qdrant-storage" }}
mountPath: /qdrant/storage
{{- if .Values.persistence.storageSubPath }}
subPath: "{{ .Values.persistence.storageSubPath }}"
{{- end }}
- name: qdrant-config
mountPath: /qdrant/config/initialize.sh
subPath: initialize.sh
@@ -188,6 +197,9 @@ spec:
{{- end }}
- name: {{ .Values.snapshotPersistence.snapshotsVolumeName | default "qdrant-snapshots" }}
mountPath: /qdrant/snapshots
{{- if .Values.snapshotPersistence.snapshotsSubPath }}
subPath: "{{ .Values.snapshotPersistence.snapshotsSubPath }}"
{{- end }}
- name: qdrant-init
mountPath: /qdrant/init
{{- if .Values.additionalVolumeMounts }}

View File

@@ -142,6 +142,7 @@ persistence:
size: 10Gi
annotations: {}
# storageVolumeName: qdrant-storage
# storageSubPath: ""
# storageClassName: local-path
# If you use snapshots or the snapshot shard transfer mechanism, we recommend
@@ -153,6 +154,7 @@ snapshotPersistence:
size: 10Gi
annotations: {}
# snapshotsVolumeName: qdrant-snapshots
# snapshotsSubPath: ""
# You can change the storageClassName to ensure snapshots are saved to cold storage.
# storageClassName: local-path