fix mcpacks topology spread scheduling

This commit is contained in:
2026-09-04 22:38:02 +00:00
parent dcd5bb128b
commit bf506882a9
+3
View File
@@ -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: