Skip to content

Commit 2737a79

Browse files
authored
Merge branch 'master' into tolerations
2 parents 89b55c5 + 75f2a43 commit 2737a79

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
@@ -32,6 +32,9 @@ spec:
3232
{{ toYaml .Values.deployment.annotations | indent 8 }}
3333
{{ end }}
3434
spec:
35+
{{- if .Values.deployment.affinity }}
36+
affinity: {{- toYaml .Values.deployment.affinity | nindent 8 }}
37+
{{ end }}
3538
nodeSelector: {{- toYaml .Values.deployment.nodeSelector | nindent 8 }}
3639
runtimeClassName: {{ .Values.deployment.runtimeClassName }}
3740
priorityClassName: {{ .Values.deployment.priorityClassName }}

charts/docker-mailserver/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ deployment:
2525
## How many versions of the deployment to run
2626
replicas: 1
2727

28+
## Optionally specify affinity for the deployment
29+
affinity: {}
30+
2831
## Optionally add additional annotations to the deployment
2932
annotations: {}
3033

0 commit comments

Comments
 (0)