mirror of
https://github.com/outbackdingo/qdrant-helm.git
synced 2026-01-27 10:20:18 +00:00
add support set subPath for persistence and snapshotPersistence (#271)
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user