From bf506882a9a6e77b5dbe5b5e065ca8da51b18a6e Mon Sep 17 00:00:00 2001 From: ahmza Date: Fri, 4 Sep 2026 22:38:02 +0000 Subject: [PATCH] fix mcpacks topology spread scheduling --- apps/mcpacks/deployment.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/mcpacks/deployment.yaml b/apps/mcpacks/deployment.yaml index 38337fd..ce02aad 100644 --- a/apps/mcpacks/deployment.yaml +++ b/apps/mcpacks/deployment.yaml @@ -29,9 +29,12 @@ spec: # Keep normal replica placement balanced across nodes. maxSkew 1 still # permits one temporary surge Pod during a zero-downtime rollout; strict # anti-affinity would deadlock that rollout when only two workers exist. + # Honor excludes the tainted control-plane nodes from the skew calculation; + # counting nodes this Pod cannot use would make the surge unschedulable. topologySpreadConstraints: - maxSkew: 1 topologyKey: kubernetes.io/hostname + nodeTaintsPolicy: Honor whenUnsatisfiable: DoNotSchedule labelSelector: matchLabels: