authentik replica with anti affinity

This commit is contained in:
Michael Thomson
2023-11-24 19:56:56 -05:00
parent 750616a13b
commit 5434ac002c

View File

@@ -17,7 +17,7 @@ spec:
releaseName: authentik releaseName: authentik
values: values:
# -- Server replicas # -- Server replicas
replicas: 1 replicas: 2
# -- Custom priority class for different treatment by the scheduler # -- Custom priority class for different treatment by the scheduler
priorityClassName: priorityClassName:
# -- server securityContext # -- server securityContext
@@ -33,7 +33,7 @@ spec:
worker: worker:
# -- worker replicas # -- worker replicas
replicas: 1 replicas: 2
# -- Custom priority class for different treatment by the scheduler # -- Custom priority class for different treatment by the scheduler
priorityClassName: priorityClassName:
# -- worker securityContext # -- worker securityContext
@@ -183,7 +183,14 @@ spec:
volumeMounts: [] volumeMounts: []
# -- affinity applied to the deployments # -- 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 applied to the deployments
tolerations: [] tolerations: []