One consolidation attempt

Two gates stand between consolidation and an eviction.

Consolidation picks a node. NodePool budgets limit how many nodes can be disrupted. A PDB limits how many pods of one app can be evicted at a time. Change the inputs and follow the attempt.

When
Replicas of frontend

Consolidation picks a node

By their resource requests, its pods would fit elsewhere or on something cheaper.

Gate 1: NodePool budgetsopen

Only the always-on budget is active: 10% of nodes, rounded up to a whole node.

Gate 2: PDB frontend-pdbclosed

minAvailable: 2. A voluntary eviction that would leave fewer than two healthy pods is blocked.

2 replicas, so no pod can be evicted.

Skipped: the PDB blocks the eviction

Karpenter will not voluntarily disrupt a node while one of its pods is blocked by a PDB. Consolidation skips the node.

pdb default/frontend-pdb prevents pod evictions
Viktor Vedmich ยท vedmich.dev
Both gates cover voluntary disruption only. A Spot reclaim or a hardware failure takes the pods anyway.