Skip to content

Commit

Permalink
Merge pull request #113 from gulecroc/affinity
Browse files Browse the repository at this point in the history
Add deployment affinity
  • Loading branch information
cfis authored May 18, 2024
2 parents 6e9c4d3 + 6b62878 commit 75f2a43
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/docker-mailserver/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions charts/docker-mailserver/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/docker-mailserver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}

Expand Down

0 comments on commit 75f2a43

Please sign in to comment.