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
Allow defining labels and annotations per component (#5657)
Salah Al Saleh3fd038fcfe6a
diff --git a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer-statefulset.yamlindex ae2a25ec84..22d5197c7d 100644--- a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml+++ b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml@@ -35,10 +35,16 @@ spec:{{ with .Values.podLabels }}{{- toYaml . | nindent 8 }}{{- end }}+ {{- with .Values.filer.podLabels }}+ {{- toYaml . | nindent 8 }}+ {{- end }}annotations:{{ with .Values.podAnnotations }}{{- toYaml . | nindent 8 }}{{- end }}+ {{- with .Values.filer.podAnnotations }}+ {{- toYaml . | nindent 8 }}+ {{- end }}spec:restartPolicy: {{ default .Values.global.restartPolicy .Values.filer.restartPolicy }}{{- if .Values.filer.affinity }}diff --git a/k8s/charts/seaweedfs/templates/master-statefulset.yaml b/k8s/charts/seaweedfs/templates/master-statefulset.yamlindex 2fe476fa4d..358f7f1cf5 100644--- a/k8s/charts/seaweedfs/templates/master-statefulset.yaml+++ b/k8s/charts/seaweedfs/templates/master-statefulset.yaml@@ -34,10 +34,16 @@ spec:{{ with .Values.podLabels }}{{- toYaml . | nindent 8 }}{{- end }}+ {{- with .Values.master.podLabels }}+ {{- toYaml . | nindent 8 }}+ {{- end }}annotations:{{ with .Values.podAnnotations }}{{- toYaml . | nindent 8 }}{{- end }}+ {{- with .Values.master.podAnnotations }}+ {{- toYaml . | nindent 8 }}+ {{- end }}spec:restartPolicy: {{ default .Values.global.restartPolicy .Values.master.restartPolicy }}{{- if .Values.master.affinity }}diff --git a/k8s/charts/seaweedfs/templates/s3-deployment.yaml b/k8s/charts/seaweedfs/templates/s3-deployment.yamlindex 365a32cdf3..778cac60fc 100644--- a/k8s/charts/seaweedfs/templates/s3-deployment.yaml+++ b/k8s/charts/seaweedfs/templates/s3-deployment.yaml@@ -27,10 +27,16 @@ spec:{{ with .Values.podLabels }}{{- toYaml . | nindent 8 }}{{- end }}+ {{- with .Values.s3.podLabels }}+ {{- toYaml . | nindent 8 }}+ {{- end }}annotations:{{ with .Values.podAnnotations }}{{- toYaml . | nindent 8 }}{{- end }}+ {{- with .Values.s3.podAnnotations }}+ {{- toYaml . | nindent 8 }}+ {{- end }}spec:restartPolicy: {{ default .Values.global.restartPolicy .Values.s3.restartPolicy }}{{- if .Values.s3.tolerations }}diff --git a/k8s/charts/seaweedfs/templates/volume-statefulset.yaml b/k8s/charts/seaweedfs/templates/volume-statefulset.yamlindex 8732a810c3..5a2c625055 100644--- a/k8s/charts/seaweedfs/templates/volume-statefulset.yaml+++ b/k8s/charts/seaweedfs/templates/volume-statefulset.yaml@@ -28,10 +28,16 @@ spec:{{ with .Values.podLabels }}{{- toYaml . | nindent 8 }}{{- end }}+ {{- with .Values.volume.podLabels }}+ {{- toYaml . | nindent 8 }}+ {{- end }}annotations:{{ with .Values.podAnnotations }}{{- toYaml . | nindent 8 }}{{- end }}+ {{- with .Values.volume.podAnnotations }}+ {{- toYaml . | nindent 8 }}+ {{- end }}spec:{{- if .Values.volume.affinity }}affinity:diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yamlindex 2e09887cce..fc16bd537e 100644--- a/k8s/charts/seaweedfs/values.yaml+++ b/k8s/charts/seaweedfs/values.yaml@@ -127,6 +127,12 @@ master:extraVolumes: ""extraVolumeMounts: ""+ # Labels to be added to the master pods+ podLabels: {}++ # Annotations to be added to the master pods+ podAnnotations: {}+## Set podManagementPolicypodManagementPolicy: Parallel@@ -369,6 +375,12 @@ volume:extraVolumes: ""extraVolumeMounts: ""+ # Labels to be added to the volume pods+ podLabels: {}++ # Annotations to be added to the volume pods+ podAnnotations: {}+## Set podManagementPolicypodManagementPolicy: Parallel@@ -551,6 +563,12 @@ filer:extraVolumes: ""extraVolumeMounts: ""+ # Labels to be added to the filer pods+ podLabels: {}++ # Annotations to be added to the filer pods+ podAnnotations: {}+## Set podManagementPolicypodManagementPolicy: Parallel@@ -761,6 +779,12 @@ s3:extraVolumes: ""extraVolumeMounts: ""+ # Labels to be added to the s3 pods+ podLabels: {}++ # Annotations to be added to the s3 pods+ podAnnotations: {}+# Resource requests, limits, etc. for the server cluster placement. This# should map directly to the value of the resources field for a PodSpec,# formatted as a multi-line string. By default no direct resource request