Browse Source

Snappymail containers should not run on same host

master
Fábio Kaiser Rauber 2 years ago
parent
commit
7959ff5433
  1. 18
      charts/snappymail/v0.1.0/templates/deployment.yaml
  2. 2
      charts/snappymail/v0.1.0/values.yaml

18
charts/snappymail/v0.1.0/templates/deployment.yaml

@ -53,10 +53,22 @@ spec:
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- {{ include "snappymail.name" . }}
- key: app.kubernetes.io/instance
operator: In
values:
- {{ .Release.Name }}
topologyKey: "kubernetes.io/hostname"
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}

2
charts/snappymail/v0.1.0/values.yaml

@ -64,8 +64,6 @@ nodeSelector: {}
tolerations: []
affinity: {}
persistence:
accessMode: ReadWriteMany
size: 8Gi

Loading…
Cancel
Save