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:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- {{ include "saberes.name" . }}
- key: app.kubernetes.io/instance
operator: In
values:
- {{ .Release.Name }}
topologyKey: "kubernetes.io/hostname"
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- {{ include "saberes.name" . }}
- key: app.kubernetes.io/instance
operator: In
values:
- {{ .Release.Name }}
topologyKey: "kubernetes.io/hostname"
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}

Loading…
Cancel
Save