From 83fcb2874174895f7fb2116cdf175e214c01330c Mon Sep 17 00:00:00 2001 From: Michael Thomson Date: Fri, 24 Nov 2023 20:13:11 -0500 Subject: [PATCH] preferred anti-affinity fixed weight --- authentik/helmrelease-authentik.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/authentik/helmrelease-authentik.yaml b/authentik/helmrelease-authentik.yaml index 5a062b6..21adf99 100644 --- a/authentik/helmrelease-authentik.yaml +++ b/authentik/helmrelease-authentik.yaml @@ -186,11 +186,13 @@ spec: affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchLabels: - app.kubernetes.io/name: authentik - app.kubernetes.io/component: server - topologyKey: kubernetes.io/hostname + - weight: 100 + podAffinityTerm: + labelSelector: + matchLabels: + app.kubernetes.io/name: authentik + app.kubernetes.io/component: server + topologyKey: kubernetes.io/hostname # -- tolerations applied to the deployments tolerations: []