mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-18 12:47:50 +08:00
k8s-chart-helm: unify extraEnvironmentVars (#5327)
This commit is contained in:
parent
e8f094dcac
commit
abf1dd13d2
@ -105,7 +105,12 @@ spec:
|
|||||||
{{- if .Values.global.extraEnvironmentVars }}
|
{{- if .Values.global.extraEnvironmentVars }}
|
||||||
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
|
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
|
||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
|
{{- if kindIs "string" $value }}
|
||||||
value: {{ $value | quote }}
|
value: {{ $value | quote }}
|
||||||
|
{{- else }}
|
||||||
|
valueFrom:
|
||||||
|
{{ toYaml $value | nindent 16 | trim }}
|
||||||
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.filer.secretExtraEnvironmentVars }}
|
{{- if .Values.filer.secretExtraEnvironmentVars }}
|
||||||
|
@ -83,13 +83,23 @@ spec:
|
|||||||
{{- if .Values.master.extraEnvironmentVars }}
|
{{- if .Values.master.extraEnvironmentVars }}
|
||||||
{{- range $key, $value := .Values.master.extraEnvironmentVars }}
|
{{- range $key, $value := .Values.master.extraEnvironmentVars }}
|
||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
|
{{- if kindIs "string" $value }}
|
||||||
value: {{ $value | quote }}
|
value: {{ $value | quote }}
|
||||||
|
{{- else }}
|
||||||
|
valueFrom:
|
||||||
|
{{ toYaml $value | nindent 16 | trim }}
|
||||||
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.global.extraEnvironmentVars }}
|
{{- if .Values.global.extraEnvironmentVars }}
|
||||||
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
|
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
|
||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
|
{{- if kindIs "string" $value }}
|
||||||
value: {{ $value | quote }}
|
value: {{ $value | quote }}
|
||||||
|
{{- else }}
|
||||||
|
valueFrom:
|
||||||
|
{{ toYaml $value | nindent 16 | trim }}
|
||||||
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
command:
|
command:
|
||||||
|
@ -69,10 +69,26 @@ spec:
|
|||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
- name: SEAWEEDFS_FULLNAME
|
- name: SEAWEEDFS_FULLNAME
|
||||||
value: "{{ template "seaweedfs.name" . }}"
|
value: "{{ template "seaweedfs.name" . }}"
|
||||||
|
{{- if .Values.s3.extraEnvironmentVars }}
|
||||||
|
{{- range $key, $value := .Values.s3.extraEnvironmentVars }}
|
||||||
|
- name: {{ $key }}
|
||||||
|
{{- if kindIs "string" $value }}
|
||||||
|
value: {{ $value | quote }}
|
||||||
|
{{- else }}
|
||||||
|
valueFrom:
|
||||||
|
{{ toYaml $value | nindent 16 | trim }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.global.extraEnvironmentVars }}
|
{{- if .Values.global.extraEnvironmentVars }}
|
||||||
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
|
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
|
||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
|
{{- if kindIs "string" $value }}
|
||||||
value: {{ $value | quote }}
|
value: {{ $value | quote }}
|
||||||
|
{{- else }}
|
||||||
|
valueFrom:
|
||||||
|
{{ toYaml $value | nindent 16 | trim }}
|
||||||
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
command:
|
command:
|
||||||
|
@ -91,10 +91,26 @@ spec:
|
|||||||
fieldPath: status.hostIP
|
fieldPath: status.hostIP
|
||||||
- name: SEAWEEDFS_FULLNAME
|
- name: SEAWEEDFS_FULLNAME
|
||||||
value: "{{ template "seaweedfs.name" . }}"
|
value: "{{ template "seaweedfs.name" . }}"
|
||||||
|
{{- if .Values.volume.extraEnvironmentVars }}
|
||||||
|
{{- range $key, $value := .Values.volume.extraEnvironmentVars }}
|
||||||
|
- name: {{ $key }}
|
||||||
|
{{- if kindIs "string" $value }}
|
||||||
|
value: {{ $value | quote }}
|
||||||
|
{{- else }}
|
||||||
|
valueFrom:
|
||||||
|
{{ toYaml $value | nindent 16 | trim }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.global.extraEnvironmentVars }}
|
{{- if .Values.global.extraEnvironmentVars }}
|
||||||
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
|
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
|
||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
|
{{- if kindIs "string" $value }}
|
||||||
value: {{ $value | quote }}
|
value: {{ $value | quote }}
|
||||||
|
{{- else }}
|
||||||
|
valueFrom:
|
||||||
|
{{ toYaml $value | nindent 16 | trim }}
|
||||||
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
command:
|
command:
|
||||||
|
@ -36,6 +36,10 @@ global:
|
|||||||
WEED_CLUSTER_DEFAULT: "sw"
|
WEED_CLUSTER_DEFAULT: "sw"
|
||||||
WEED_CLUSTER_SW_MASTER: "seaweedfs-master.seaweedfs:9333"
|
WEED_CLUSTER_SW_MASTER: "seaweedfs-master.seaweedfs:9333"
|
||||||
WEED_CLUSTER_SW_FILER: "seaweedfs-filer-client.seaweedfs:8888"
|
WEED_CLUSTER_SW_FILER: "seaweedfs-filer-client.seaweedfs:8888"
|
||||||
|
# WEED_JWT_SIGNING_KEY:
|
||||||
|
# secretKeyRef:
|
||||||
|
# name: seaweedfs-signing-key
|
||||||
|
# key: signingKey
|
||||||
|
|
||||||
image:
|
image:
|
||||||
registry: ""
|
registry: ""
|
||||||
@ -186,10 +190,10 @@ master:
|
|||||||
tls: []
|
tls: []
|
||||||
|
|
||||||
extraEnvironmentVars:
|
extraEnvironmentVars:
|
||||||
WEED_MASTER_VOLUME_GROWTH_COPY_1: 7
|
WEED_MASTER_VOLUME_GROWTH_COPY_1: '7'
|
||||||
WEED_MASTER_VOLUME_GROWTH_COPY_2: 6
|
WEED_MASTER_VOLUME_GROWTH_COPY_2: '6'
|
||||||
WEED_MASTER_VOLUME_GROWTH_COPY_3: 3
|
WEED_MASTER_VOLUME_GROWTH_COPY_3: '3'
|
||||||
WEED_MASTER_VOLUME_GROWTH_COPY_OTHER: 1
|
WEED_MASTER_VOLUME_GROWTH_COPY_OTHER: '1'
|
||||||
|
|
||||||
# used to configure livenessProbe on master-server containers
|
# used to configure livenessProbe on master-server containers
|
||||||
#
|
#
|
||||||
@ -371,6 +375,8 @@ volume:
|
|||||||
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
||||||
serviceAccountName: ""
|
serviceAccountName: ""
|
||||||
|
|
||||||
|
extraEnvironmentVars:
|
||||||
|
|
||||||
# used to configure livenessProbe on volume-server containers
|
# used to configure livenessProbe on volume-server containers
|
||||||
#
|
#
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
@ -706,6 +712,8 @@ s3:
|
|||||||
storageClass: ""
|
storageClass: ""
|
||||||
hostPathPrefix: /storage
|
hostPathPrefix: /storage
|
||||||
|
|
||||||
|
extraEnvironmentVars:
|
||||||
|
|
||||||
# used to configure livenessProbe on s3 containers
|
# used to configure livenessProbe on s3 containers
|
||||||
#
|
#
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
|
Loading…
Reference in New Issue
Block a user