mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-11-11 10:23:17 +08:00
The Kubernetes default strategy (`maxSurge=25%, maxUnavailable=25%`) can stall small pools when a workerpool edit and get k8s deployment rolling: below 4 replic, as `maxUnavailable` rounds to 0, the surge pod needs to land first, and if existing pods already take all spaces of their node, the new one never lands and the rollout is stuck. Use `maxSurge` 0 with `maxUnavailable` 10%, which Kubernetes will evaluate as removing remove least one pod first so it will never block. Also modify `progressDeadlineSeconds`to be 3600s so a batch waiting out the drain window (currently 30min) is not reported as a failed rollout. - [ ] Tests pass - [ ] Appropriate changes to documentation are included in the PR