From d46cd97c4595cb5f4f9db1da912909db2c68d473 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Sun, 22 Nov 2026 11:19:34 +0100 Subject: [PATCH] Softly prefer large CPU workers for Authentik worker --- apps/authentik/README.md | 5 +++++ apps/authentik/values.yaml | 10 ++++++++++ 2 files changed, 15 insertions(+) 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