From b9ad237fc3c3001ae143b687393a2c2df97a32f7 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Sun, 22 Nov 2026 11:16:40 +0100 Subject: [PATCH] Softly prefer large CPU workers for Traefik replicas --- apps/traefik/README.md | 7 +++++++ apps/traefik/values.yaml | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/apps/traefik/README.md b/apps/traefik/README.md index ec37c27..e123c68 100644 --- a/apps/traefik/README.md +++ b/apps/traefik/README.md @@ -18,3 +18,10 @@ because the additional Service uses cluster-wide endpoint routing. Traefik CRDs and Gateway API CRDs are cluster-wide prerequisites. Keep the existing CRDs during adoption and upgrades; they are not safe cleanup targets. Application-specific ingress resources remain with their owning application. + +## Placement + +Traefik softly prefers workers labeled `capacity.brunner.ninja/cpu-class=large`. +The Xeon currently has that label. The existing required anti-affinity keeps +the two replicas on separate nodes. If the Xeon is unavailable, Kubernetes +places its replacement on another worker without changing this configuration. diff --git a/apps/traefik/values.yaml b/apps/traefik/values.yaml index 977f6f8..98b97dd 100644 --- a/apps/traefik/values.yaml +++ b/apps/traefik/values.yaml @@ -14,6 +14,15 @@ resources: cpu: 700m memory: 3072Mi affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + preference: + matchExpressions: + - key: capacity.brunner.ninja/cpu-class + operator: In + values: + - large podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: