Browse Source

Fix podAntiAffinity for mailproxy

master
Fábio Kaiser Rauber 2 years ago
parent
commit
cdd8e83e87
  1. 24
      charts/mailproxy/v0.1.0/templates/nginx-deployment.yaml

24
charts/mailproxy/v0.1.0/templates/nginx-deployment.yaml

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

Loading…
Cancel
Save