Browse Source

Fix pod antiaffinity

master
Fábio Kaiser Rauber 3 years ago
parent
commit
d2fd705da7
  1. 24
      charts/saberes/v0.1.0/templates/deployment.yaml

24
charts/saberes/v0.1.0/templates/deployment.yaml

@ -91,17 +91,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 "saberes.name" . }} operator: In
- key: app.kubernetes.io/instance values:
operator: In - {{ include "saberes.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