|
@ -154,13 +154,16 @@ spec: |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
-master={{ range $index := until (.Values.master.replicas | int) }}${SEAWEEDFS_FULLNAME}-master-{{ $index }}.${SEAWEEDFS_FULLNAME}-master:{{ $.Values.master.port }}{{ if lt $index (sub ($.Values.master.replicas | int) 1) }},{{ end }}{{ end }} |
|
|
-master={{ range $index := until (.Values.master.replicas | int) }}${SEAWEEDFS_FULLNAME}-master-{{ $index }}.${SEAWEEDFS_FULLNAME}-master:{{ $.Values.master.port }}{{ if lt $index (sub ($.Values.master.replicas | int) 1) }},{{ end }}{{ end }} |
|
|
{{- if or (.Values.global.enableSecurity) (.Values.filer.extraVolumeMounts) }} |
|
|
|
|
|
volumeMounts: |
|
|
volumeMounts: |
|
|
- name: seaweedfs-filer-log-volume |
|
|
- name: seaweedfs-filer-log-volume |
|
|
mountPath: "/logs/" |
|
|
mountPath: "/logs/" |
|
|
- mountPath: /etc/sw |
|
|
- mountPath: /etc/sw |
|
|
name: config-users |
|
|
name: config-users |
|
|
readOnly: true |
|
|
readOnly: true |
|
|
|
|
|
{{- if .Values.filer.enablePVC }} |
|
|
|
|
|
- name: data-filer |
|
|
|
|
|
mountPath: /data |
|
|
|
|
|
{{- end }} |
|
|
{{- if .Values.global.enableSecurity }} |
|
|
{{- if .Values.global.enableSecurity }} |
|
|
- name: security-config |
|
|
- name: security-config |
|
|
readOnly: true |
|
|
readOnly: true |
|
@ -183,7 +186,6 @@ spec: |
|
|
mountPath: /usr/local/share/ca-certificates/client/ |
|
|
mountPath: /usr/local/share/ca-certificates/client/ |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{ tpl .Values.filer.extraVolumeMounts . | nindent 12 | trim }} |
|
|
{{ tpl .Values.filer.extraVolumeMounts . | nindent 12 | trim }} |
|
|
{{- end }} |
|
|
|
|
|
ports: |
|
|
ports: |
|
|
- containerPort: {{ .Values.filer.port }} |
|
|
- containerPort: {{ .Values.filer.port }} |
|
|
name: swfs-filer |
|
|
name: swfs-filer |
|
@ -250,16 +252,18 @@ spec: |
|
|
nodeSelector: |
|
|
nodeSelector: |
|
|
{{ tpl .Values.filer.nodeSelector . | indent 8 | trim }} |
|
|
{{ tpl .Values.filer.nodeSelector . | indent 8 | trim }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{/* volumeClaimTemplates:*/}} |
|
|
|
|
|
{{/* - metadata:*/}} |
|
|
|
|
|
{{/* name: data-{{ .Release.Namespace }}*/}} |
|
|
|
|
|
{{/* spec:*/}} |
|
|
|
|
|
{{/* accessModes:*/}} |
|
|
|
|
|
{{/* - ReadWriteOnce*/}} |
|
|
|
|
|
{{/* resources:*/}} |
|
|
|
|
|
{{/* requests:*/}} |
|
|
|
|
|
{{/* storage: {{ .Values.filer.storage }}*/}} |
|
|
|
|
|
{{/* {{- if .Values.filer.storageClass }}*/}} |
|
|
|
|
|
{{/* storageClassName: {{ .Values.filer.storageClass }}*/}} |
|
|
|
|
|
{{/* {{- end }}*/}} |
|
|
|
|
|
|
|
|
{{- if .Values.filer.enablePVC }} |
|
|
|
|
|
volumeClaimTemplates: |
|
|
|
|
|
- metadata: |
|
|
|
|
|
name: data-filer |
|
|
|
|
|
spec: |
|
|
|
|
|
accessModes: |
|
|
|
|
|
- ReadWriteOnce |
|
|
|
|
|
resources: |
|
|
|
|
|
requests: |
|
|
|
|
|
storage: {{ .Values.filer.storage }} |
|
|
|
|
|
{{- if .Values.filer.storageClass }} |
|
|
|
|
|
storageClassName: {{ .Values.filer.storageClass }} |
|
|
|
|
|
{{- end }} |
|
|
|
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |