aboutsummaryrefslogtreecommitdiff
path: root/k8s/charts
diff options
context:
space:
mode:
authorSalah Al Saleh <sg.alsaleh@gmail.com>2024-06-07 08:12:13 -0700
committerGitHub <noreply@github.com>2024-06-07 08:12:13 -0700
commit3fd038fcfe6a55df5a726aa6ea518b4e7a311692 (patch)
tree38e1082c6a0d4d25ca502e5d19a6e7a72de50aa0 /k8s/charts
parentdc6b75042473b33c5f2fadc2174f1661fbfe4d5d (diff)
downloadseaweedfs-3fd038fcfe6a55df5a726aa6ea518b4e7a311692.tar.xz
seaweedfs-3fd038fcfe6a55df5a726aa6ea518b4e7a311692.zip
Allow defining labels and annotations per component (#5657)
Diffstat (limited to 'k8s/charts')
-rw-r--r--k8s/charts/seaweedfs/templates/filer-statefulset.yaml6
-rw-r--r--k8s/charts/seaweedfs/templates/master-statefulset.yaml6
-rw-r--r--k8s/charts/seaweedfs/templates/s3-deployment.yaml6
-rw-r--r--k8s/charts/seaweedfs/templates/volume-statefulset.yaml6
-rw-r--r--k8s/charts/seaweedfs/values.yaml24
5 files changed, 48 insertions, 0 deletions
diff --git a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml
index ae2a25ec8..22d5197c7 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.yaml
index 2fe476fa4..358f7f1cf 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.yaml
index 365a32cdf..778cac60f 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.yaml
index 8732a810c..5a2c62505 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.yaml
index 2e09887cc..fc16bd537 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 podManagementPolicy
podManagementPolicy: 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 podManagementPolicy
podManagementPolicy: 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 podManagementPolicy
podManagementPolicy: 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