diff --git a/apps/authentik/README.md b/apps/authentik/README.md index 8d3cecb..cf2c97d 100644 --- a/apps/authentik/README.md +++ b/apps/authentik/README.md @@ -37,3 +37,8 @@ and replica checks; it derives the expected version from the Argo Application. The Kubernetes Dashboard provider is attached to the embedded outpost in the Authentik database. This avoids a blueprint replacing the embedded outpost's complete provider list, because other applications also own providers there. + +## Worker placement + +The worker softly prefers nodes labeled `capacity.brunner.ninja/cpu-class=large` +to use spare CPU. It can run on any worker when those nodes are unavailable. diff --git a/apps/authentik/values.yaml b/apps/authentik/values.yaml index 0a0d18f..cf60334 100644 --- a/apps/authentik/values.yaml +++ b/apps/authentik/values.yaml @@ -91,6 +91,16 @@ server: startupProbe: timeoutSeconds: 10 worker: + affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + preference: + matchExpressions: + - key: capacity.brunner.ninja/cpu-class + operator: In + values: + - large resources: requests: cpu: 150m