automate your karpenter nodepools

Karpenter consolidation that keeps going, without manual fixes

PerfectScale watches your NodePools and adjusts disruption budgets when stuck nodes block consolidation.

Karpenter consolidation that keeps going, without manual fixes

Automatic Consolidation Unblocking

Automatically free the budget slots that stuck nodes hold.

  • Find Stuck Nodes: PerfectScale watches your NodePools for nodes that stay in deletion because Karpenter cannot drain them.
  • Free the Budget: It raises the consolidation budget for a while, just enough for Karpenter to keep consolidating at the pace you set.
  • Return to Your Values: When the stuck nodes are gone, PerfectScale lowers the budget back to your original value.

Careful Budget Changes

Only the setting that matters is touched, and your values always come back.

  • Consolidation Budgets Only: Budgets for other reasons, such as Drifted, are left as they are. A zero budget is a deliberate block and is never raised.
  • Only the Number Changes: PerfectScale changes only the nodes value. It never touches the schedule, reasons or duration, and never goes below your original value.
  • No Data, No Change: If cluster data is missing or outdated, PerfectScale makes no change.

Controlled Automation

Choose which NodePools are automated, and when changes may happen.

  • Pick Your NodePools: Automate the whole cluster, selected NodePools, or NodePools that match a label. Automation is off until you turn it on.
  • Your Own Schedule: Set a maintenance window and a cooldown between changes, so NodePools change only when you are ready.
  • Full Record and Easy Revert: Every change appears in the Automation Audit with the values before and after. One setting restores your original values at any time.

Feature Chart

  • Stuck Node Detection

    Find nodes that stay in deletion because Karpenter cannot drain them.

  • Temporary Budget Increase

    Raise consolidation budgets just enough, so Karpenter keeps going.

  • Automatic Return

    Budgets go back to your original values when the stuck nodes are gone.

  • Safe Budget Rules

    Zero budgets and budgets for other reasons are left alone.

  • Original Values Saved

    PerfectScale keeps a record of your original values so it can restore them.

  • Cluster or Per NodePool

    Enable it for the cluster, for selected NodePools, or by label.

  • Maintenance Window

    Change NodePools only inside the windows you set.

  • Cooldown Between Changes

    Set the minimum time between two changes of the same NodePool.

  • Controlled Pace

    Change one NodePool at a time by default.

  • Automation Audit

    See every change with the values before and after.

  • NodeFit Status

    See the automation state of each node group.

  • GitOps Friendly

    Add one ignore rule so ArgoCD does not report the budgets as drift.

  • One Stop Switch

    Pause all Karpenter changes for the cluster with one setting.

  • One Revert Switch

    Restore every automated NodePool to your original values.

Frequently asked
questions

What is Karpenter automation?

Karpenter automation applies the Karpenter recommendations from PerfectScale to your NodePools for you. You choose which NodePools are automated. PerfectScale patches them, keeps a record of your original values, and can restore them at any time.

The first automated recommendation unblocks consolidation when nodes that are stuck in deletion hold disruption budget slots.

Why does a stuck node block consolidation?

Karpenter counts every node that is being deleted against the NodePool disruption budgets until its instance terminates. A node whose drain is blocked, for example by a PodDisruptionBudget or a pod with the karpenter.sh/do-not-disrupt annotation, can stay in that state for a long time.

While it does, it uses a budget slot. In a NodePool with a budget of one node, a single stuck node uses the only slot, so Karpenter stops consolidating the whole pool and underutilized nodes keep running.

What does PerfectScale change on my NodePools?

PerfectScale changes only the nodes value of the budgets in spec.disruption.budgets that apply to consolidation. It raises the value for a while so Karpenter can keep consolidating at the pace you set, and it lowers the value back to your original when the stuck nodes are gone.

A zero budget is a deliberate block and is never raised. Budgets for other reasons, such as Drifted, are left as they are. The reasons, schedule and duration of a budget never change, and a budget is never lowered below your original value. If cluster data is missing or outdated, PerfectScale makes no change. All other NodePool fields stay yours to change.

The change is not immediate. It depends on cluster data that is collected regularly, and it follows the maintenance window and cooldown you set. While a budget is raised, Karpenter can disrupt more nodes at once for a short time after the stuck nodes are gone, until PerfectScale lowers the budget again.

Can I choose which NodePools are automated?

Yes. Automation stays off until a configuration sets automationMode: Enabled. You can enable it for the whole cluster, enable it for selected NodePools only, or include and exclude NodePools by label. A NodePool can also opt out with its own configuration.

Read-only NodePools that your cloud provider manages, such as the built-in system and general-purpose NodePools of EKS Auto Mode, are never automated.

How do I turn on Karpenter automation?

You need the PerfectScale automation agent installed in the cluster, and your NodePools must use the karpenter.sh/v1 API. Then apply a ClusterNodeGroupAutomationConfig with automationMode: Enabled and with the disruptionBudgets restriction enabled.

To automate only some NodePools, keep the cluster configuration disabled and add a NodeGroupAutomationConfig for each NodePool. You can also set a maintenance window and a cooldown. See the Karpenter automation docs for the full steps.

Can I stop it or get my original values back?

Yes. Set stopAllAutomation: true to pause Karpenter automation in the cluster. PerfectScale makes no more changes, and the values that are already applied stay as they are.

Set cleanUpAutomation: true to stop automation and restore every automated NodePool to your original values. Turning automation off for a single NodePool stops further changes, but it does not restore the original values.

Will my GitOps controller fight with it?

When a user or a GitOps controller writes a different value to an automated budget, the automation agent restores the automated value, and the writer gets a warning. The agent never blocks your writes: if it is not available, NodePool updates go through unchanged.

Your GitOps tool will still see the adjusted budgets as drift. To avoid repeated syncs, exclude the /spec/disruption/budgets field from the comparison. In ArgoCD, add it to ignoreDifferences for the NodePool kind. To change the budgets yourself, first turn off the budgets restriction or turn off automation for that NodePool.

Where can I see what PerfectScale changed?

The Karpenter Automation tab of the Automation Audit lists every change that was applied to a NodePool, with the values before and after. NodeFit shows the automation state of each node group.

In the cluster, PerfectScale adds a patchedAt annotation to every NodePool it changed, and keeps a KarpenterAutomationStatus resource for each automated NodePool. Do not delete these resources, because they hold your original values.

Automate Karpenter, hands-free

Install in minutes and get autonomous optimization insights.