Karpenter vs Cluster Autoscaler vs KEDA: nodes, pods and costs

Karpenter and Cluster Autoscaler manage Kubernetes node capacity; KEDA scales workloads in response to events and can complement either. The Kubernetes node-autoscaling documentation makes the node-level distinction explicit: Cluster Autoscaler expands predefined groups, while Karpenter provisions from NodePool constraints and manages more of the node lifecycle. Choose between those capacity models, then decide whether the workload also needs KEDA.

A queue can need more consumers while the cluster also needs somewhere to place them. KEDA supplies event metrics to the Horizontal Pod Autoscaler; it does not replace the node-capacity decision. Evaluating the complete path from incoming work to running replicas is more useful than ranking these projects by a single speed claim.

Google · Preferred Sources

Don't miss new tech stories on Google

Add Tech Insider once in the Google app and our stories appear in your news suggestions.

Add Now

Choose the scaling layer before the controller

Kubernetes describes both node autoscalers as provisioning capacity for unschedulable pods and consolidating capacity that is no longer efficiently used. Cluster Autoscaler can manage multiple configured node groups and chooses specific nodes to remove during consolidation. It is not limited to deleting empty nodes or blindly reducing a group’s desired size.

Karpenter uses individual cloud resources rather than requiring the same group abstraction. Its scope includes refreshing nodes as they age and updating worker images. Those lifecycle operations belong in your operational comparison alongside provisioning: accepting a new controller also means deciding how it may replace capacity that is already running.

DecisionCluster AutoscalerKarpenterKEDA
What it changesCapacity in predefined node groupsNode capacity and node lifecycleWorkload replicas through event-driven activation and HPA integration
Configuration starting pointGroups that can satisfy pending podsNodePool constraints and a provider NodeClassA scale target and event trigger
What triggers additional capacityPending pods that fit an eligible groupPending pods that fit allowed NodePool constraintsEvent information used to activate or scale a workload
How it fits with the other layerCan provide nodes for event-scaled workloadsCan provide nodes for event-scaled workloadsCan be paired with a suitable node autoscaler

Provider coverage is a separate selection step. Kubernetes lists numerous Cluster Autoscaler integrations and a smaller set of Karpenter integrations, including AWS and Azure, and warns that performance and features differ by provider. KEDA’s own documentation says it relies on standard Kubernetes constructs and can run across EKS, AKS, GKE, OpenShift or other Kubernetes infrastructure. Verify the node provider you will actually deploy rather than transferring an AWS result to every cloud.

The Docker and Kubernetes comparison explains the surrounding container and orchestration roles. For this choice, keep the ownership question narrower: which controller decides replica demand, and which controller supplies node capacity? Avoid giving separate workload autoscalers authority over the same target.

Capacity limits start with requests and placement

Node autoscaling uses pod resource requests and placement constraints, not the pod’s eventual observed consumption, according to Kubernetes’s provisioning guidance. Requests that are too small can leave a pod without the capacity it actually needs; requests that are too large can prevent consolidation. Changing controllers does not repair those declarations automatically.

Karpenter’s scheduling explanation includes CPU, memory, GPU demand and overhead from networking and DaemonSets in its packing decisions. Its FAQ also rules out native namespace-only provisioning. To isolate a pilot workload, use compatible labels, node selectors, taints and tolerations. Naming a namespace in a rollout plan does not by itself restrict which NodePool can serve its pods.

The following NodePool fragment retains the AWS-oriented configuration pattern and puts expireAfter at spec.template.spec, as defined in the NodePool reference. It assumes a ready EC2NodeClass named default, with your approved images, networking and identity configuration. Set the example expiration to match your node-maintenance policy.

apiVersion: karpenter.sh/v1
kind: NodePool
metadata:
  name: default
spec:
  template:
    spec:
      requirements:
        - key: karpenter.sh/capacity-type
          operator: In
          values: ["spot", "on-demand"]
        - key: kubernetes.io/arch
          operator: In
          values: ["amd64"]
      nodeClassRef:
        group: karpenter.k8s.aws
        kind: EC2NodeClass
        name: default
      expireAfter: 720h
  disruption:
    consolidationPolicy: WhenEmpty

Allowing both capacity types permits on-demand fallback when Spot is unavailable. Karpenter documents that a Spot-only NodePool does not get that fallback: pods remain pending until an allowed offering can launch. Use the choice deliberately. Lower-priced capacity is of little help to a workload that cannot get any eligible node.

The same reference defines WhenEmpty as considering nodes without workload pods. Moving to WhenEmptyOrUnderutilized broadens the consolidation policy; evaluate the disruption consequences before making that change. A configured termination grace period also matters: the reference says pods blocking eviction can be forcibly deleted when that period expires. Include that deadline when deciding how long applications have to drain.

Set appropriate resource limits and inspect them during bursts. Karpenter warns that its parallel provisioning makes limit checks eventually consistent, so rapid scaling can temporarily overrun them. Separately, Kubernetes identifies cloud capacity, incompatible configuration and provisioning limits as reasons pods can remain pending. Diagnose those causes before concluding that a different autoscaler will solve the delay.

KEDA needs a working path from idle to processing

KEDA distinguishes activation from subsequent scaling: its operator handles movement between zero and an active workload, while the HPA handles scaling once the workload is active. For Kafka, that lets an idle consumer deployment stop and restart when new work arrives. Node capacity must still be available for the activated pods.

This illustrative Kafka ScaledObject preserves the original consumer-group pattern. Replace the deployment, broker, group and topic with your actual application values. The replica ceiling and lag target are example settings to tune against processing behavior. The referenced authentication object must already exist and supply the credentials your broker requires; KEDA’s Kafka documentation describes the supported authentication and TLS configuration.

apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
  name: order-processor
spec:
  scaleTargetRef:
    name: order-processor-deployment
  minReplicaCount: 0
  maxReplicaCount: 50
  triggers:
    - type: kafka
      metadata:
        bootstrapServers: kafka.default.svc:9092
        consumerGroup: order-group
        topic: orders
        lagThreshold: "50"
        tls: enable
      authenticationRef:
        name: order-kafka-auth

KEDA defines the lag target over the sum of partition lags, but the replica ceiling is not a promise of useful parallelism. By default, the Kafka scaler also constrains consumers by partition count. Raising maxReplicaCount above that count does not make it launch enough consumers to reach the configured maximum. Check the partition layout before tuning the ceiling.

Do not add an independent HPA for this same deployment. KEDA warns that the controllers would compete because it already uses an HPA. Keep the scale policy under a single owner. For long-running messages, its deployment guide also warns that scale-in can terminate a replica that is still processing; design shutdown and work recovery around that behavior before enabling aggressive scale-down.

A useful acceptance run starts with an idle deployment, introduces representative work, observes activation and scheduling, then checks scale-in while processing is underway. Record the event arrival, requested replica change, pending interval and application readiness separately. Those observations distinguish event-detection delay from a capacity shortage or a slow application startup.

Salesforce’s migration reduced cost and operational work

The Salesforce migration account published by AWS concerns a platform with more than 1,000 EKS clusters. It reports lower scaling latency, improved packing and reduced operational effort, while also saying the rollout remained in progress. Salesforce attributes the improvement to provisioning for pending pods, better packing and self-service automation.

Reported measureSalesforce accountHow to use it
Scaling latencyReduced from minutes to secondsReported scaling improvement during Salesforce’s migration
Compute cost savings5% in FY2026Reported realized savings for that platform
Further cost savingsAdditional 5-10% projected for FY2027Projected benefit from the continuing rollout
Manual operational overheadReduced by 80%Manual work reduced through automation and self-service

Our assessment is that the strongest transferable lesson is the migration discipline. Salesforce reports that parallel cordoning initially caused cluster-health problems and that missing ephemeral-storage configuration left workloads unable to schedule. A controller that can supply capacity faster still needs correct workload placement and safe replacement procedures.

Build your own cost comparison around the resources and work that change. KEDA has no charge for using the project itself, but stopping consumer replicas and removing billed node capacity are different events. The FinOps guide covers the broader cloud-cost process; for this migration, compare the same workload and billing scope before and after.

Operational behaviorCluster AutoscalerKarpenterKEDA
Scale-out pathUnschedulable pods trigger expansion of an eligible predefined node groupPending pods are packed into eligible individual cloud instancesAn event activates an idle workload; the HPA then adjusts replicas
Where latency arisesCapacity is obtained through the configured group and provider integrationSalesforce reported moving from minutes to seconds after migration; the result covers its EKS fleetEvent detection and replica activation precede scheduling onto available nodes
What scale-in removesSpecific nodes selected for consolidation, including underutilized capacityNodes eligible under the NodePool consolidation policy; WhenEmpty restricts this to nodes without workload podsWorkload replicas; idle Kafka consumers can scale to zero
Constraints that can leave work waitingResource requests, group configuration, provisioning limits and provider capacityPod and NodePool requirements must overlap; a Spot-only pool cannot fall back to on-demandKafka partition count can cap useful consumers below maxReplicaCount; activated pods still need node capacity
Disruption control to examinePod disruption budgets during the documented migration from existing groupsConsolidation policy, expiration and termination grace period; expiry of the grace period can force pod deletionScale-in can terminate a consumer processing a long-running message
Cloud supportNumerous provider integrations, with provider-dependent features and performanceFewer integrations; Kubernetes identifies AWS and Azure, with provider-dependent behaviorStandard Kubernetes constructs across EKS, AKS, GKE, OpenShift and other Kubernetes clusters

Move workloads without stranding the controller

The official Cluster Autoscaler migration guide assumes an existing EKS cluster, networking, node groups and workloads with suitable disruption budgets. It places Karpenter on existing node-group capacity and retains enough of that capacity for critical services. Plan that stable home before asking Karpenter to take responsibility for the application nodes.

First inventory the settings the workload depends on: placement constraints, storage and the node configuration they imply. Create the provider NodeClass and a narrowly eligible NodePool, then check that the intended pods can use it. The NodePool reference requires the pod and pool requirements to overlap; an impossible combination cannot be repaired by provisioning more nodes.

Next verify that the controller and critical add-ons remain on capacity you intend to keep. Follow the official migration sequence for identity, discovery, node admission and controller deployment. Its procedure disables Cluster Autoscaler after Karpenter is running, reduces the legacy groups while retaining critical capacity, and recommends incremental reductions for larger fleets. Avoid collapsing those steps into an instruction to remove every old group.

Watch the replacement nodes and workload availability as each increment moves. The guide explicitly warns that reducing node-group capacity without appropriate disruption budgets can make workloads unavailable. Stop expansion if replacement pods remain pending or application availability deteriorates; keep a documented path back to the previous capacity configuration before starting the next increment.

Track the manifests through the deployment process your team operates; the Argo CD and Flux comparison covers that GitOps choice. The acceptance decision here remains specific: the intended pods schedule, event-scaled work activates and completes, node replacement respects application requirements, and any claimed saving appears in the chosen billing scope. Keep Cluster Autoscaler when its configured groups already meet those requirements; choose Karpenter when constraint-based capacity and lifecycle management solve a demonstrated problem, and add KEDA when the workload needs event-driven replica control.

Sofia Lindström

Sofia Lindström

Security and privacy

Sofia Lindström writes about security and privacy for Tech Insider: software vulnerabilities and the updates that fix them, data breaches, privacy rules and how products handle personal data. She works from vendor advisories, official vulnerability catalogues and the documents behind each story.

View all articles