Skip to content

Commit

Permalink
Merge pull request #112 from gulecroc/tolerations
Browse files Browse the repository at this point in the history
Add deployment tolerations
  • Loading branch information
cfis authored May 18, 2024
2 parents 75f2a43 + 2737a79 commit 07bf88b
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.11
version: 3.0.12
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 @@ -42,6 +42,9 @@ spec:
serviceAccountName: {{ template "dockermailserver.serviceAccountName" . }}
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
{{- if .Values.deployment.tolerations }}
tolerations: {{- toYaml .Values.deployment.tolerations | nindent 8 }}
{{ end }}
volumes:
# ConfigMaps
{{- range $name, $config := .Values.configMaps }}
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 @@ -267,6 +267,9 @@ deployment:
## it may terminated.
memory: "2048Mi"
ephemeral-storage: "500Mi"

## Optionally specify tolerations for the deployment
tolerations: []

service:
## What scope the service should be exposed in. One of:
Expand Down

0 comments on commit 07bf88b

Please sign in to comment.