Browse Source

specify the filer.s3.existingConfigSecret for the filer statefulset

clean up volumeMounts so name is first in the object list item
pull/5048/head
jessebot 1 year ago
committed by Chris Lu
parent
commit
c219a0c553
  1. 6
      k8s/charts/seaweedfs/templates/filer-statefulset.yaml

6
k8s/charts/seaweedfs/templates/filer-statefulset.yaml

@ -196,8 +196,8 @@ spec:
mountPath: "/logs/" mountPath: "/logs/"
{{- end }} {{- end }}
{{- if .Values.filer.s3.enableAuth }} {{- if .Values.filer.s3.enableAuth }}
- mountPath: /etc/sw
name: config-users
- name: config-users
mountPath: /etc/sw
readOnly: true readOnly: true
{{- end }} {{- end }}
{{- if (or .Values.filer.enablePVC (or (eq .Values.filer.data.type "hostPath") (eq .Values.filer.data.type "persistentVolumeClaim"))) }} {{- if (or .Values.filer.enablePVC (or (eq .Values.filer.data.type "hostPath") (eq .Values.filer.data.type "persistentVolumeClaim"))) }}
@ -292,7 +292,7 @@ spec:
secret: secret:
defaultMode: 420 defaultMode: 420
{{- if .Values.filer.s3.existingConfigSecret }} {{- if .Values.filer.s3.existingConfigSecret }}
secretName: {{ .Values.s3.existingConfigSecret }}
secretName: {{ .Values.filer.s3.existingConfigSecret }}
{{- else }} {{- else }}
secretName: seaweedfs-s3-secret secretName: seaweedfs-s3-secret
{{- end }} {{- end }}

Loading…
Cancel
Save