Files
cozystack/api/apps
Andrei Kvapil 4e62068763 fix(kubernetes-nodes): scale a pool capped at zero down to zero
The chart leaves spec.replicas out of the MachineDeployment so the
autoscaler owns it, and relies on CAPI to clamp the live value into
[min, max]. A pool set to maxReplicas 0 to pause it kept its running
workers: the clamp did not bring the MachineDeployment down, and the
autoscaler only removes nodes it finds unneeded. Seen on a managed
cluster suspended for lack of funds, and with Stop group in the
console, both of which set the pool to min 0 / max 0.

A pool capped at zero now renders replicas: 0. Raising maxReplicas
drops the field again, and the autoscaler brings the pool back to its
minimum.

Assisted-by: LLM
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-12-01 17:47:05 +01:00
..