diff --git a/charts/backoffice/templates/deployment.yaml b/charts/backoffice/templates/deployment.yaml index a14222b..c61d310 100644 --- a/charts/backoffice/templates/deployment.yaml +++ b/charts/backoffice/templates/deployment.yaml @@ -54,3 +54,14 @@ spec: name: {{ .Release.Name }}-nextauth resources: {{- toYaml .Values.backend.resources | nindent 12 }} + affinity: + podAntiAffinity: + # requiredDuringSchedulingIgnoredDuringExecution + preferredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: app.kubernetes.io/instance + operator: In + values: + - {{ .Release.Name }} + topologyKey: kubernetes.io/hostname