From f6602310471f63f73a11cc8fa3c753f49d292d71 Mon Sep 17 00:00:00 2001 From: Fabio Date: Thu, 8 Sep 2022 11:02:36 -0300 Subject: [PATCH] Fix pod antiAffinity for mailauth and mailproxy --- charts/mailproxy/v0.1.0/templates/mailauth-deployment.yaml | 4 ++++ charts/mailproxy/v0.1.0/templates/nginx-deployment.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/charts/mailproxy/v0.1.0/templates/mailauth-deployment.yaml b/charts/mailproxy/v0.1.0/templates/mailauth-deployment.yaml index 08188ff..7fc415e 100644 --- a/charts/mailproxy/v0.1.0/templates/mailauth-deployment.yaml +++ b/charts/mailproxy/v0.1.0/templates/mailauth-deployment.yaml @@ -72,6 +72,10 @@ spec: operator: In values: - {{ .Release.Name }} + - key: app.kubernetes.io/component + operator: In + values: + - mailauth topologyKey: "kubernetes.io/hostname" {{- with .Values.tolerations }} tolerations: diff --git a/charts/mailproxy/v0.1.0/templates/nginx-deployment.yaml b/charts/mailproxy/v0.1.0/templates/nginx-deployment.yaml index d540e85..5dcbe2b 100644 --- a/charts/mailproxy/v0.1.0/templates/nginx-deployment.yaml +++ b/charts/mailproxy/v0.1.0/templates/nginx-deployment.yaml @@ -79,6 +79,10 @@ spec: operator: In values: - {{ .Release.Name }} + - key: app.kubernetes.io/component + operator: In + values: + - nginx topologyKey: "kubernetes.io/hostname" {{- with .Values.tolerations }} tolerations: