Browse Source

Implemented saberes app pod antiaffinity

master
Fábio Kaiser Rauber 3 years ago
parent
commit
3c11c6cdaf
  1. 16
      charts/saberes/v0.1.0/templates/deployment.yaml
  2. 2
      charts/saberes/v0.1.0/values.yaml

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

@ -88,10 +88,20 @@ spec:
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
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"
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}

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

@ -74,5 +74,3 @@ autoscaling:
nodeSelector: {}
tolerations: []
affinity: {}

Loading…
Cancel
Save