From 7ca0f35d92c6ad54e8883bb7a5e405b4e6a18030 Mon Sep 17 00:00:00 2001 From: Mayne0213 Date: Sat, 3 Jan 2026 10:41:15 +0900 Subject: [PATCH] REFACTOR(traefik): change traefik anti-affinity - from hard to soft - Use preferredDuringSchedulingIgnoredDuringExecution instead of required - Allows pods to be scheduled on same node if necessary - Still prefers distribution across nodes (weight: 100) --- traefik/helm-values.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/traefik/helm-values.yaml b/traefik/helm-values.yaml index ead57f0..a4a3818 100644 --- a/traefik/helm-values.yaml +++ b/traefik/helm-values.yaml @@ -9,14 +9,16 @@ spec: deployment: replicas: 3 - # Pod Anti-Affinity - 각 노드에 최대 1개씩만 배치 + # Pod Anti-Affinity - 가능하면 각 노드에 분산 배치 (soft) affinity: podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchLabels: - app.kubernetes.io/name: traefik - topologyKey: kubernetes.io/hostname + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchLabels: + app.kubernetes.io/name: traefik + topologyKey: kubernetes.io/hostname # Master 노드에도 배치 허용 tolerations: