From 5434ac002c70b5d3729632dd74725c82da634d2c Mon Sep 17 00:00:00 2001 From: Michael Thomson Date: Fri, 24 Nov 2023 19:56:56 -0500 Subject: [PATCH] authentik replica with anti affinity --- authentik/helmrelease-authentik.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/authentik/helmrelease-authentik.yaml b/authentik/helmrelease-authentik.yaml index c6f7863..bc09758 100644 --- a/authentik/helmrelease-authentik.yaml +++ b/authentik/helmrelease-authentik.yaml @@ -17,7 +17,7 @@ spec: releaseName: authentik values: # -- Server replicas - replicas: 1 + replicas: 2 # -- Custom priority class for different treatment by the scheduler priorityClassName: # -- server securityContext @@ -33,7 +33,7 @@ spec: worker: # -- worker replicas - replicas: 1 + replicas: 2 # -- Custom priority class for different treatment by the scheduler priorityClassName: # -- worker securityContext @@ -183,7 +183,14 @@ spec: volumeMounts: [] # -- affinity applied to the deployments - affinity: {} + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchLabels: + app.kubernetes.io/name: authentik + app.kubernetes.io/component: server + topologyKey: kubernetes.io/hostname # -- tolerations applied to the deployments tolerations: []