From 9814fed455c68002e46915247dd25fa8cd58ab58 Mon Sep 17 00:00:00 2001 From: HDW Date: Fri, 24 Apr 2026 23:45:17 +0200 Subject: [PATCH] Add node affinity for traefik to prefer infra node --- infrastructure/traefik/values.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/infrastructure/traefik/values.yaml b/infrastructure/traefik/values.yaml index 5a0ee50..be5971b 100644 --- a/infrastructure/traefik/values.yaml +++ b/infrastructure/traefik/values.yaml @@ -1,7 +1,23 @@ # infrastructure/traefik/values.yaml deployment: kind: Deployment - + affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + preference: + matchExpressions: + - key: workload + operator: In + values: + - infra + - weight: 50 + preference: + matchExpressions: + - key: workload + operator: In + values: + - Games ports: web: port: 80