Skip to content

Commit aa4eb2a

Browse files
author
guillaume.lecroc
committed
add deployment tolerations
1 parent 6e9c4d3 commit aa4eb2a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

charts/docker-mailserver/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ spec:
3939
serviceAccountName: {{ template "dockermailserver.serviceAccountName" . }}
4040
securityContext:
4141
{{ toYaml .Values.securityContext | indent 8 }}
42+
{{- if .Values.deployment.tolerations }}
43+
tolerations: {{- toYaml .Values.deployment.tolerations | nindent 8 }}
44+
{{ end }}
4245
volumes:
4346
# ConfigMaps
4447
{{- range $name, $config := .Values.configMaps }}

charts/docker-mailserver/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ deployment:
264264
## it may terminated.
265265
memory: "2048Mi"
266266
ephemeral-storage: "500Mi"
267+
268+
## Optionally specify tolerations for the deployment
269+
tolerations: []
267270

268271
service:
269272
## What scope the service should be exposed in. One of:

0 commit comments

Comments
 (0)