diff --git a/charts/docker-mailserver/Chart.yaml b/charts/docker-mailserver/Chart.yaml index 9ab593a6..ffc3b9ba 100644 --- a/charts/docker-mailserver/Chart.yaml +++ b/charts/docker-mailserver/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: "13.3.1" description: A fullstack but simple mailserver (smtp, imap, antispam, antivirus, ssl...) using Docker. name: docker-mailserver -version: 3.0.10 +version: 3.0.11 sources: - https://github.com/docker-mailserver/docker-mailserver-helm maintainers: diff --git a/charts/docker-mailserver/templates/deployment.yaml b/charts/docker-mailserver/templates/deployment.yaml index 1823dafb..77ebb434 100644 --- a/charts/docker-mailserver/templates/deployment.yaml +++ b/charts/docker-mailserver/templates/deployment.yaml @@ -32,6 +32,9 @@ spec: {{ toYaml .Values.deployment.annotations | indent 8 }} {{ end }} spec: + {{- if .Values.deployment.affinity }} + affinity: {{- toYaml .Values.deployment.affinity | nindent 8 }} + {{ end }} nodeSelector: {{- toYaml .Values.deployment.nodeSelector | nindent 8 }} runtimeClassName: {{ .Values.deployment.runtimeClassName }} priorityClassName: {{ .Values.deployment.priorityClassName }} diff --git a/charts/docker-mailserver/values.yaml b/charts/docker-mailserver/values.yaml index 08eb5978..a8f1efc6 100644 --- a/charts/docker-mailserver/values.yaml +++ b/charts/docker-mailserver/values.yaml @@ -25,6 +25,9 @@ deployment: ## How many versions of the deployment to run replicas: 1 + ## Optionally specify affinity for the deployment + affinity: {} + ## Optionally add additional annotations to the deployment annotations: {}