SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
[helm] Allow setting notification.toml config (#6159)
Davide Calabresea3b97bfe0317
diff --git a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer-statefulset.yamlindex 0dfa0e84eb..5ac84bdf7d 100644--- a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml+++ b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml@@ -234,6 +234,12 @@ spec:- name: data-filermountPath: /data{{- end }}+ {{- if .Values.filer.notificationConfig }}+ - name: notification-config+ readOnly: true+ mountPath: /etc/seaweedfs/notification.toml+ subPath: notification.toml+ {{- end }}{{- if .Values.global.enableSecurity }}- name: security-configreadOnly: true@@ -349,6 +355,11 @@ spec:secretName: seaweedfs-s3-secret{{- end }}{{- end }}+ {{- if .Values.filer.notificationConfig }}+ - name: notification-config+ configMap:+ name: {{ template "seaweedfs.name" . }}-notification-config+ {{- end }}{{- if .Values.global.enableSecurity }}- name: security-configconfigMap:diff --git a/k8s/charts/seaweedfs/templates/notification-configmap.yaml b/k8s/charts/seaweedfs/templates/notification-configmap.yamlnew file mode 100644index 0000000000..c638c87715--- /dev/null+++ b/k8s/charts/seaweedfs/templates/notification-configmap.yaml@@ -0,0 +1,19 @@+{{- if and .Values.filer.enabled .Values.filer.notificationConfig }}+apiVersion: v1+kind: ConfigMap+metadata:+ name: {{ template "seaweedfs.name" . }}-notification-config+ namespace: {{ .Release.Namespace }}+ labels:+ app.kubernetes.io/name: {{ template "seaweedfs.name" . }}+ helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}+ app.kubernetes.io/managed-by: {{ .Release.Service }}+ app.kubernetes.io/instance: {{ .Release.Name }}+{{- if .Values.filer.annotations }}+ annotations:+ {{- toYaml .Values.filer.annotations | nindent 4 }}+{{- end }}+data:+ notification.toml: |-+ {{ .Values.filer.notificationConfig | nindent 4 }}+{{- end }}diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yamlindex a0c010b89c..2150ed7242 100644--- a/k8s/charts/seaweedfs/values.yaml+++ b/k8s/charts/seaweedfs/values.yaml@@ -546,6 +546,19 @@ filer:# Disable http request, only gRpc operations are alloweddisableHttp: false+ # Add a custom notification.toml to configure filer notifications+ # Example:+ # notificationConfig: |-+ # [notification.kafka]+ # enabled = false+ # hosts = [+ # "localhost:9092"+ # ]+ # topic = "seaweedfs_filer"+ # offsetFile = "./last.offset"+ # offsetSaveIntervalSeconds = 10+ notificationConfig: ""+# DEPRECATE: enablePVC, storage, storageClass# Consider replacing with filer.data section below instead.