Browse Source

Add podAntiAffinity for mailproxy mailauth

master
Fábio Kaiser Rauber 2 years ago
parent
commit
b1012fe986
  1. 18
      charts/mailproxy/v0.1.0/templates/mailauth-deployment.yaml

18
charts/mailproxy/v0.1.0/templates/mailauth-deployment.yaml

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

Loading…
Cancel
Save