From 47095efead80322cae5e41a97283a9531fe2027d Mon Sep 17 00:00:00 2001 From: Max Roby Date: Sat, 18 Nov 2023 20:51:09 +0100 Subject: [PATCH] enable existing claim on filer --- k8s/charts/seaweedfs/templates/filer-statefulset.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml index df299a145..1079e537e 100644 --- a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml +++ b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml @@ -266,12 +266,22 @@ spec: path: {{ .Values.filer.logs.hostPathPrefix }}/logs/seaweedfs/filer type: DirectoryOrCreate {{- 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" }} - name: data-filer hostPath: path: {{ .Values.filer.data.hostPathPrefix }}/filer_store type: DirectoryOrCreate {{- end }} + {{- if eq .Values.filer.data.type "existingClaim" }} + - name: data-filer + persistentVolumeClaim: + claimName: {{ .Values.filer.data.claimName }} + {{- end }} - name: db-schema-config-volume configMap: name: seaweedfs-db-init-config