enable existing claim on filer

This commit is contained in:
Max Roby 2023-11-18 20:51:09 +01:00 committed by Chris Lu
parent f46f28fcf9
commit 47095efead

View file

@ -266,12 +266,22 @@ spec:
path: {{ .Values.filer.logs.hostPathPrefix }}/logs/seaweedfs/filer path: {{ .Values.filer.logs.hostPathPrefix }}/logs/seaweedfs/filer
type: DirectoryOrCreate type: DirectoryOrCreate
{{- end }} {{- end }}
{{- if eq .Values.filer.logs.type "existingClaim" }}
- name: seaweedfs-filer-log-volume
persistentVolumeClaim:
claimName: {{ .Values.filer.logs.claimName }}
{{- end }}
{{- if eq .Values.filer.data.type "hostPath" }} {{- if eq .Values.filer.data.type "hostPath" }}
- name: data-filer - name: data-filer
hostPath: hostPath:
path: {{ .Values.filer.data.hostPathPrefix }}/filer_store path: {{ .Values.filer.data.hostPathPrefix }}/filer_store
type: DirectoryOrCreate type: DirectoryOrCreate
{{- end }} {{- end }}
{{- if eq .Values.filer.data.type "existingClaim" }}
- name: data-filer
persistentVolumeClaim:
claimName: {{ .Values.filer.data.claimName }}
{{- end }}
- name: db-schema-config-volume - name: db-schema-config-volume
configMap: configMap:
name: seaweedfs-db-init-config name: seaweedfs-db-init-config