Skip to content

Commit

Permalink
add support set subPath for persistence and snapshotPersistence
Browse files Browse the repository at this point in the history
  • Loading branch information
Asutorufa committed Dec 9, 2024
1 parent 07ac6c9 commit 2ca9ef3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/qdrant/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ spec:
volumeMounts:
- name: {{ .Values.persistence.storageVolumeName | default "qdrant-storage" }}
mountPath: /qdrant/storage
subPath: "{{ .Values.persistence.storageSubPath }}"
- name: {{ .Values.snapshotPersistence.snapshotsVolumeName | default "qdrant-snapshots" }}
mountPath: /qdrant/snapshots
subPath: "{{ .Values.snapshotPersistence.snapshotsSubPath }}"
{{- if and .Values.snapshotRestoration.enabled .Values.snapshotRestoration.pvcName }}
- name: qdrant-snapshot-restoration
mountPath: {{ .Values.snapshotRestoration.mountPath }}
Expand Down Expand Up @@ -171,6 +173,7 @@ spec:
volumeMounts:
- name: {{ .Values.persistence.storageVolumeName | default "qdrant-storage" }}
mountPath: /qdrant/storage
subPath: "{{ .Values.persistence.storageSubPath }}"
- name: qdrant-config
mountPath: /qdrant/config/initialize.sh
subPath: initialize.sh
Expand All @@ -188,6 +191,7 @@ spec:
{{- end }}
- name: {{ .Values.snapshotPersistence.snapshotsVolumeName | default "qdrant-snapshots" }}
mountPath: /qdrant/snapshots
subPath: "{{ .Values.snapshotPersistence.snapshotsSubPath }}"
- name: qdrant-init
mountPath: /qdrant/init
{{- if .Values.additionalVolumeMounts }}
Expand Down
2 changes: 2 additions & 0 deletions charts/qdrant/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 2ca9ef3

Please sign in to comment.