|
@ -216,10 +216,18 @@ spec: |
|
|
{{ tpl .Values.filer.resources . | nindent 12 | trim }} |
|
|
{{ tpl .Values.filer.resources . | nindent 12 | trim }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
volumes: |
|
|
volumes: |
|
|
|
|
|
{{- if eq .Values.filer.logs.type "hostPath" }} |
|
|
- name: seaweedfs-filer-log-volume |
|
|
- name: seaweedfs-filer-log-volume |
|
|
hostPath: |
|
|
hostPath: |
|
|
path: /storage/logs/seaweedfs/filer |
|
|
path: /storage/logs/seaweedfs/filer |
|
|
type: DirectoryOrCreate |
|
|
type: DirectoryOrCreate |
|
|
|
|
|
{{- end }} |
|
|
|
|
|
{{- if eq .Values.filer.data.type "hostPath" }} |
|
|
|
|
|
- name: data-filer |
|
|
|
|
|
hostPath: |
|
|
|
|
|
path: /storage/filer_store |
|
|
|
|
|
type: DirectoryOrCreate |
|
|
|
|
|
{{- end }} |
|
|
- name: db-schema-config-volume |
|
|
- name: db-schema-config-volume |
|
|
configMap: |
|
|
configMap: |
|
|
name: seaweedfs-db-init-config |
|
|
name: seaweedfs-db-init-config |
|
@ -253,6 +261,7 @@ spec: |
|
|
{{ tpl .Values.filer.nodeSelector . | indent 8 | trim }} |
|
|
{{ tpl .Values.filer.nodeSelector . | indent 8 | trim }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- if .Values.filer.enablePVC }} |
|
|
{{- if .Values.filer.enablePVC }} |
|
|
|
|
|
# DEPRECATION: Deprecate in favor of filer.data section below |
|
|
volumeClaimTemplates: |
|
|
volumeClaimTemplates: |
|
|
- metadata: |
|
|
- metadata: |
|
|
name: data-filer |
|
|
name: data-filer |
|
@ -266,4 +275,28 @@ spec: |
|
|
storageClassName: {{ .Values.filer.storageClass }} |
|
|
storageClassName: {{ .Values.filer.storageClass }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
|
|
|
{{- $pvc_exists := include "filer.pvc_exists" . -}} |
|
|
|
|
|
{{- if $pvc_exists }} |
|
|
|
|
|
volumeClaimTemplates: |
|
|
|
|
|
{{- if eq .Values.filer.data.type "persistentVolumeClaim"}} |
|
|
|
|
|
- metadata: |
|
|
|
|
|
name: data-filer |
|
|
|
|
|
spec: |
|
|
|
|
|
accessModes: [ "ReadWriteOnce" ] |
|
|
|
|
|
storageClassName: {{ .Values.filer.data.storageClass }} |
|
|
|
|
|
resources: |
|
|
|
|
|
requests: |
|
|
|
|
|
storage: {{ .Values.filer.data.size }} |
|
|
|
|
|
{{- end }} |
|
|
|
|
|
{{- if eq .Values.filer.logs.type "persistentVolumeClaim"}} |
|
|
|
|
|
- metadata: |
|
|
|
|
|
name: seaweedfs-filer-log-volume |
|
|
|
|
|
spec: |
|
|
|
|
|
accessModes: [ "ReadWriteOnce" ] |
|
|
|
|
|
storageClassName: {{ .Values.filer.logs.storageClass }} |
|
|
|
|
|
resources: |
|
|
|
|
|
requests: |
|
|
|
|
|
storage: {{ .Values.filer.logs.size }} |
|
|
|
|
|
{{- end }} |
|
|
|
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |