Browse Source

added secret envs to filer (#4284)

pull/4287/head
Matt 2 years ago
committed by GitHub
parent
commit
889ecf5c9d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      k8s/charts/seaweedfs/templates/filer-statefulset.yaml
  2. 12
      k8s/charts/seaweedfs/values.yaml

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

@ -97,6 +97,12 @@ spec:
value: {{ $value | quote }}
{{- end }}
{{- end }}
{{- if .Values.filer.secretExtraEnvironmentVars }}
{{- range $key, $value := .Values.filer.secretExtraEnvironmentVars }}
- name: {{ $key }}
valueFrom: {{ toYaml $value | nindent 16 }}
{{- end }}
{{- end }}
command:
- "/bin/sh"
- "-ec"

12
k8s/charts/seaweedfs/values.yaml

@ -407,6 +407,18 @@ filer:
# directories under this folder will be automatically creating a separate bucket
WEED_FILER_BUCKETS_FOLDER: "/buckets"
# secret env variables
secretExtraEnvironmentVars: []
# WEED_POSTGRES_USERNAME:
# secretKeyRef:
# name: postgres-credentials
# key: username
# WEED_POSTGRES_PASSWORD:
# secretKeyRef:
# name: postgres-credentials
# key: password
s3:
enabled: true
port: 8333

Loading…
Cancel
Save