Skip to content
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

add support set subPath for persistence and snapshotPersistence #271

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions charts/qdrant/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,14 @@ spec:
volumeMounts:
- name: {{ .Values.persistence.storageVolumeName | default "qdrant-storage" }}
mountPath: /qdrant/storage
{{- if .Values.persistence.storageSubPath }}
subPath: "{{ .Values.persistence.storageSubPath }}"
Asutorufa marked this conversation as resolved.
Show resolved Hide resolved
{{- 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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
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