fix mcpacks topology spread scheduling
This commit is contained in:
@@ -29,9 +29,12 @@ spec:
|
|||||||
# Keep normal replica placement balanced across nodes. maxSkew 1 still
|
# Keep normal replica placement balanced across nodes. maxSkew 1 still
|
||||||
# permits one temporary surge Pod during a zero-downtime rollout; strict
|
# permits one temporary surge Pod during a zero-downtime rollout; strict
|
||||||
# anti-affinity would deadlock that rollout when only two workers exist.
|
# 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:
|
topologySpreadConstraints:
|
||||||
- maxSkew: 1
|
- maxSkew: 1
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
|
nodeTaintsPolicy: Honor
|
||||||
whenUnsatisfiable: DoNotSchedule
|
whenUnsatisfiable: DoNotSchedule
|
||||||
labelSelector:
|
labelSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
|||||||
Reference in New Issue
Block a user