diff --git a/manifest/base/worker-deployment.yaml b/manifest/base/worker-deployment.yaml index ec60833..d7af15d 100644 --- a/manifest/base/worker-deployment.yaml +++ b/manifest/base/worker-deployment.yaml @@ -16,6 +16,13 @@ spec: app: authentik-worker spec: serviceAccountName: authentik-worker + affinity: + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchLabels: + app: authentik-server + topologyKey: kubernetes.io/hostname securityContext: runAsUser: 1000 runAsGroup: 988