Ensure Karpenter Creates New NodeClaim Before Deleting Existing Node for Consolidation #1879
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Description
What problem are you trying to solve?
Currently, when consolidating underutilized or empty nodes, Karpenter does not create new NodeClaims before initiating the deletion or draining of existing nodes. This can lead to a temporary loss of capacity, causing disruptions to workloads, especially when there are no spare nodes available in the cluster.
This behavior poses challenges for workloads that require high availability or have strict scheduling constraints, as pods may remain in a pending state until new nodes are provisioned.
Proposed Behavior
When consolidating nodes, Karpenter should:
waitForReadyBeforeConsolidation
) to enable or disable this behavior, allowing users to choose between faster consolidation and safer capacity transitions.Use Case
Steps to Reproduce
Expected Behavior
Workloads should remain unaffected during node consolidation events.
Potential Solutions
waitForReadyBeforeConsolidation: true
at NodePool level to enable this behavior.How important is this feature to you?
This feature would enhance cluster stability and workload availability, making Karpenter a more robust solution for production environments.
The text was updated successfully, but these errors were encountered: