Browse Source

Make emailleg container upgrade in the same host

master
Fábio Kaiser Rauber 2 years ago
parent
commit
3275a2063b
  1. 17
      charts/emailleg/v1.4.0/templates/deployment.yaml

17
charts/emailleg/v1.4.0/templates/deployment.yaml

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

Loading…
Cancel
Save