What Is Karpenter?
Karpenter is an open-source, high-performance Kubernetes node lifecycle management and cluster autoscaler tool developed by AWS and donated to the Cloud Native Computing Foundation (CNCF). It helps organizations scale Kubernetes clusters efficiently by launching appropriately sized nodes when additional capacity is needed and removing unnecessary nodes to reduce infrastructure costs.
Karpenter works by monitoring pods that the Kubernetes scheduler cannot place on existing nodes. It evaluates their resource requests and scheduling constraints, including CPU, memory, instance types, availability zones, and node affinity, before provisioning suitable compute instances. Unlike traditional node autoscaling approaches that depend on predefined node groups, Karpenter can dynamically select from a range of instance types and configurations.
Karpenter also supports node consolidation, which identifies opportunities to replace underutilized nodes with fewer or more cost-effective instances. It is commonly used with Amazon Elastic Kubernetes Service (EKS), although its supports implementations across multiple cloud providers. Karpenter manages node capacity rather than pod replica counts, complementing tools such as the Horizontal Pod Autoscaler (HPA).

Source: Karpenter
Karpenter architecture and core resources:
- NodePool: scheduling constraints, resource limits, and disruption policy. Defines eligible capacity, workload placement, provisioning limits, and node lifecycle policies.
- NodeClass and EC2NodeClass: cloud infrastructure settings. Specifies cloud configuration, including AMIs, networking, IAM roles, storage, and kubelet settings.
- NodeClaim: how Karpenter tracks each provisioned node. Tracks individual nodes through instance launch, registration, initialization, and termination.
- NodeOverlay and static NodePools: Adjust scheduling assumptions through NodeOverlays or maintain a fixed node count through static NodePools.
Karpenter vs. Cluster Autoscaler:
- Scale-out: direct provisioning vs. node group resizing. Karpenter selects and provisions instances directly; Cluster Autoscaler expands predefined node groups.
- Scale-in: active consolidation vs. scale-down heuristics. Karpenter can replace nodes with cheaper capacity; Cluster Autoscaler removes nodes when workloads fit elsewhere.
- Cloud support: EKS and AKS offer Karpenter-based capabilities; GKE primarily uses native autoscaling services.
This is part of a series of articles about Kubernetes autoscaling
Why Karpenter Was Created
Karpenter was created by AWS in 2021 to address the limitations of traditional Kubernetes node autoscaling, particularly the operational complexity and inefficiencies associated with Cluster Autoscaler and predefined cloud infrastructure configurations.
Before Karpenter, organizations typically relied on managed node groups and cloud provider Auto Scaling groups to expand or reduce cluster capacity. These approaches could introduce several challenges:
- Dependence on predefined node groups: Cluster Autoscaler scales existing node groups, requiring administrators to configure and maintain groups for different instance types, availability zones, and workload requirements.
- Limited flexibility in instance selection: Preconfigured node groups can restrict the available compute options, making it more difficult to select the most appropriate instance for each workload.
- Slower provisioning decisions: Evaluating predefined node groups and managing their scaling operations can introduce delays when workloads experience sudden increases in demand.
- Resource overprovisioning: Fixed node configurations may result in workloads running on instances with more CPU or memory than necessary, increasing infrastructure costs.
- Operational complexity: Managing multiple node groups, scaling policies, and infrastructure configurations creates additional maintenance overhead for platform engineering teams.
Karpenter addresses these challenges by making provisioning decisions directly from Kubernetes workload requirements rather than relying on predefined node group configurations. This enables more flexible instance selection, faster responses to changing capacity demands, and opportunities to reduce infrastructure costs through node consolidation.
Key Benefits of Karpenter
Karpenter simplifies Kubernetes node autoscaling by automatically provisioning compute resources based on workload requirements. Its dynamic approach to node management helps organizations improve resource utilization, reduce infrastructure costs, and maintain application performance as demand changes.
Key benefits include:
- Reduced infrastructure costs: Karpenter selects cost-effective instance types based on workload requirements and supports node consolidation to eliminate underutilized capacity, reducing unnecessary compute spending.
- Faster node provisioning: Karpenter responds to unschedulable pods by directly provisioning suitable compute instances, reducing delays associated with evaluating and scaling predefined node groups.
- Improved resource utilization: By matching node capacity to actual pod resource requests and scheduling constraints, Karpenter helps minimize wasted CPU and memory resources.
- Simplified cluster management: Karpenter reduces the need to manually create and maintain multiple node groups, scaling configurations, and infrastructure provisioning policies.
- Greater instance flexibility: Karpenter can select from multiple instance families, sizes, architectures, and purchasing options, including Spot and On-Demand instances, to accommodate different workload requirements.
- Automated node consolidation: Karpenter identifies opportunities to remove empty nodes or replace underutilized nodes with more efficient alternatives, continuously improving cluster resource allocation.
- Improved workload scalability: Karpenter dynamically adds capacity as application demands increase, helping Kubernetes clusters handle traffic spikes, changing workloads, and unpredictable resource requirements.
Karpenter Architecture and Core Resources
NodePool: Scheduling Constraints, Resource Limits, and Disruption Policy
A NodePool defines the requirements and policies Karpenter uses when provisioning Kubernetes nodes. It specifies which types of compute instances are eligible, which workloads can run on them, and how Karpenter should manage node capacity over time. Organizations can create multiple NodePools for different workload categories, such as general-purpose applications, GPU workloads, or Spot-based workloads.
NodePools support several configuration options:
- Scheduling constraints: Define eligible instance types, CPU architectures, availability zones, capacity types, and other requirements that determine which nodes Karpenter can provision.
- Resource limits: Restrict the total CPU, memory, or other resources a NodePool can provision, helping prevent uncontrolled infrastructure expansion.
- Taints and labels: Control workload placement by specifying which pods can run on nodes associated with a particular NodePool.
- Disruption policies: Configure node consolidation, expiration, and disruption budgets to balance infrastructure efficiency with application availability.
- NodePool weights: Prioritize eligible NodePools during provisioning, allowing organizations to express preferences for particular capacity configurations.
When a pod cannot be scheduled on existing nodes, Karpenter evaluates compatible NodePools and selects infrastructure that satisfies the pod's requirements. This allows infrastructure teams to define operational boundaries while leaving individual instance selection to Karpenter.
NodeClass and EC2NodeClass: Cloud Infrastructure Settings
A NodeClass defines the cloud-specific configuration Karpenter uses to launch and initialize compute instances. While NodePools determine which nodes are eligible for scheduling, NodeClasses specify how those nodes should be created within the underlying cloud environment. On AWS, Karpenter uses the EC2NodeClass resource to configure Amazon EC2 instances.
An EC2NodeClass includes settings such as Amazon Machine Image (AMI) selection, subnet and security group discovery, IAM roles, block device mappings, instance metadata options, and kubelet configurations. For example, administrators can configure EC2NodeClass resources to provision instances in private subnets, use specific operating system images, or apply standardized storage configurations.
Each NodePool references a NodeClass through the nodeClassRef field, and multiple NodePools can share the same EC2NodeClass. This separation simplifies infrastructure management because organizations can reuse cloud configurations across different workload groups while maintaining distinct scheduling policies.
NodeClaim: How Karpenter Tracks Each Provisioned Node
A NodeClaim represents an individual node that Karpenter intends to provision or is actively managing. It connects Kubernetes scheduling decisions with the underlying cloud instance lifecycle, allowing Karpenter to track provisioning requests, instance creation, node registration, initialization, and eventual termination.
When Karpenter identifies unschedulable pods, it evaluates their requirements against the available NodePools and NodeClasses. It then creates a NodeClaim containing the selected scheduling constraints and requested resources. The cloud provider uses this information to launch an appropriate instance, which subsequently registers with the Kubernetes cluster.
NodeClaims also provide visibility into node lifecycle states through conditions such as Launched, Registered, Initialized, and Ready. Administrators can inspect these resources to troubleshoot provisioning failures, verify node readiness, and understand how Karpenter is managing compute capacity. NodeClaims are managed by Karpenter rather than manually edited by users.
NodeOverlay and Static NodePools
NodeOverlays and static NodePools provide additional control over Karpenter's provisioning decisions and capacity management. These features address requirements that may not be fully supported by standard dynamic provisioning, such as custom instance pricing assumptions, extended resource definitions, or workloads that require a predictable baseline of compute capacity.
NodeOverlay is an alpha-stage feature that modifies the instance information Karpenter uses during scheduling simulations. It can override or adjust instance pricing to reflect factors such as licensing costs or savings plans and add extended resources, such as specialized GPU capacity, to instance types. These changes influence Karpenter's provisioning and consolidation decisions without directly modifying actual cloud pricing or physical instance resources.
Static NodePools allow administrators to maintain a fixed number of nodes independently of workload demand. By configuring the replicas field, organizations can reserve baseline capacity for critical services, predictable workloads, or infrastructure components that require consistent availability. Unlike dynamically managed nodes, nodes in static NodePools are not considered for consolidation, although Karpenter continues to manage their provisioning and replacement when necessary.
Lower Your K8s Costs with Karpenter + Sedai
Sedai is the perfect complement to Karpenter for lowering Kubernetes costs, autonomously. Book a personalized demo to see Sedai in action.

How Karpenter Provisions Nodes
Karpenter provisions Kubernetes nodes dynamically in response to workloads that cannot be scheduled on existing cluster capacity. Instead of scaling predefined node groups, it evaluates pending pod requirements and selects compatible compute instances from the available cloud infrastructure options. This allows Karpenter to provision capacity based on actual workload needs.
The provisioning process involves several steps:
- Detect unschedulable pods: The Kubernetes scheduler identifies pods that cannot run on existing nodes because of insufficient resources or incompatible scheduling constraints. Karpenter monitors these pods to determine whether additional capacity is required.
- Evaluate workload requirements: Karpenter analyzes CPU and memory requests, node selectors, affinity rules, topology constraints, tolerations, and other scheduling requirements to determine what infrastructure can support the pending workloads.
- Select a compatible NodePool and NodeClass: Karpenter evaluates eligible NodePools and their referenced NodeClasses, considering instance availability, resource limits, supported capacity types, and infrastructure configuration.
- Choose suitable compute capacity: Karpenter determines the resources needed to accommodate pending pods and identifies eligible instance types that satisfy the combined requirements. On AWS, it can select from compatible EC2 instance families, sizes, and purchasing options.
- Create a NodeClaim and launch an instance: Karpenter creates a NodeClaim representing the requested capacity. The cloud provider then provisions an instance using the selected configuration.
- Register and initialize the node: The new instance joins the Kubernetes cluster, initializes its required resources, and becomes available for scheduling. The Kubernetes scheduler can then place pending pods on the node.
Karpenter can provision multiple nodes during a single scheduling cycle when workloads require additional capacity. By evaluating multiple pending pods together, it can make more efficient provisioning decisions and reduce unnecessary infrastructure expansion.
How Karpenter Removes and Replaces Nodes
Karpenter continuously evaluates provisioned nodes to identify opportunities to reduce infrastructure costs, replace outdated configurations, and maintain cluster health. Its disruption mechanisms manage node removal and replacement based on workload utilization, configuration changes, node age, and infrastructure events.
Karpenter supports several node disruption mechanisms:
- Empty node consolidation: Removes nodes that no longer host workloads requiring dedicated capacity, reducing unnecessary compute costs.
- Underutilized node consolidation: Identifies nodes whose workloads can be moved to existing capacity or more cost-effective replacement instances. Karpenter can consolidate multiple nodes into fewer instances when scheduling constraints allow.
- Drift-based replacement: Detects nodes that no longer match their desired NodePool or NodeClass configuration, such as following changes to supported instance requirements or AMI settings, and replaces them when appropriate.
- Node expiration: Removes nodes that reach their configured maximum lifetime, supporting infrastructure refresh cycles and reducing reliance on aging instances.
- Spot interruption handling: On AWS, Karpenter can respond to interruption notifications and initiate node draining and replacement to reduce the impact of Spot Instance termination.
- Node auto repair: When enabled, Karpenter can identify nodes with persistent unhealthy conditions and replace them to restore cluster capacity.
For graceful disruption methods, Karpenter evaluates whether workloads can be rescheduled before removing a node. It checks relevant disruption budgets, scheduling constraints, and available capacity, and can provision replacement nodes before terminating existing ones. During termination, Karpenter marks the node unschedulable, drains eligible pods, and coordinates the deletion of the underlying cloud instance.
Administrators can control disruption behavior through NodePool settings, including consolidation policies, consolidation delays, node expiration, and disruption budgets. Kubernetes PodDisruptionBudgets (PDBs) and pod-level disruption controls can also protect sensitive workloads from avoidable interruptions. However, expiration and certain infrastructure interruptions follow different disruption rules, so these controls do not guarantee that every node replacement will be disruption-free.
Related content: Read our article about Kubernetes bin packing and how it reduces cluster costs
Karpenter vs. Cluster Autoscaler
The following table summarizes the differences between Karpenter and the native Kubernetes alternative, Cluster Autoscaler. We explore the differences in more detail below.
Aspect | Karpenter | Cluster Autoscaler |
Scale-out | Provisions instances directly through cloud APIs. | Resizes predefined node groups. |
Flexibility | Dynamically selects instance types, sizes, zones, and purchasing options. | Limited to configured node group options. |
Scale-in | Consolidates workloads; can replace nodes with cheaper alternatives. | Removes underutilized nodes when workloads can move elsewhere. |
Node lifecycle | Handles configuration drift and node expiration. | Primarily focuses on capacity scaling. |
Cloud support | Self-managed on EKS; managed implementations include EKS Auto Mode and AKS NAP. | Broad cloud support; standard managed approach on GKE. |
Best fit | Diverse workloads needing flexible provisioning and lifecycle automation. | Established node groups and predictable capacity needs. |
Scale-Out: Direct Provisioning vs. Node Group Resizing
Karpenter provisions nodes directly through cloud provider APIs rather than relying on predefined node groups. When pods cannot be scheduled, it evaluates their CPU, memory, storage, and scheduling requirements and selects compatible compute instances. This allows Karpenter to choose from multiple instance types, sizes, availability zones, and purchasing options without requiring administrators to maintain separate node groups for every configuration.
Cluster Autoscaler takes a different approach by increasing the capacity of existing node groups, such as AWS Auto Scaling groups. It evaluates whether available node group configurations can accommodate pending pods and then adjusts the size of a suitable group. This approach requires administrators to configure node groups in advance, potentially limiting flexibility when workloads have diverse resource requirements.
Scale-In: Active Consolidation vs. Scale-Down Heuristics
Karpenter uses active node consolidation to identify opportunities to remove unnecessary capacity or replace existing nodes with more cost-effective alternatives. It evaluates whether workloads can fit on other existing nodes or a cheaper replacement instance while respecting scheduling constraints and applicable disruption protections.
Cluster Autoscaler uses scale-down heuristics to identify underutilized nodes whose workloads can be safely rescheduled elsewhere. It then removes eligible nodes and reduces their node group's capacity. Although this approach can improve resource utilization, its ability to replace nodes with different instance configurations is limited by the predefined node groups available.
Cloud Support: EKS Auto Mode, AKS Node Auto Provisioning, and GKE
Karpenter originated in the AWS ecosystem but has expanded through cloud-specific implementations. Its availability and management model differ across Amazon EKS, Azure Kubernetes Service (AKS), and Google Kubernetes Engine (GKE).
- Amazon EKS: Supports self-managed Karpenter, allowing organizations to configure NodePools, EC2NodeClasses, instance selection, and disruption policies. Amazon EKS Auto Mode also uses a Karpenter-based provisioning system but manages the autoscaling infrastructure and node operations on behalf of customers.
- Azure Kubernetes Service (AKS): Offers Node Auto Provisioning (NAP), a managed capability built on the open-source Karpenter project and its Azure provider. NAP dynamically selects Azure virtual machine configurations based on pending pod requirements, reducing the need to manually configure node pools.
- Google Kubernetes Engine (GKE): Primarily uses Google's managed Cluster Autoscaler and node auto-provisioning capabilities rather than Karpenter as its standard managed autoscaler. GKE can automatically create and resize node pools based on workload requirements, while GKE Autopilot further abstracts node infrastructure management. Community Karpenter integrations for Google Cloud also exist, but they should not be confused with GKE's native autoscaling services.
For organizations choosing between the two autoscalers, Karpenter is particularly useful when workloads require diverse instance types, flexible provisioning, and automated node lifecycle management. Cluster Autoscaler remains a suitable option for environments with established node group configurations, predictable capacity requirements, or cloud platforms where it is the primary supported autoscaling solution.
Related content: Read our guide to Kubernetes pricing across EKS, AKS, and GKE
Karpenter Best Practices
Rightsize Pod Requests Before Enabling Aggressive Consolidation
Karpenter uses Kubernetes pod resource requests to determine how much compute capacity workloads require. If applications request significantly more CPU or memory than they actually consume, Karpenter may provision unnecessarily large instances and miss opportunities to consolidate nodes. Conversely, requests that are too low can cause resource contention, CPU throttling, or out-of-memory failures.
Before enabling aggressive consolidation, analyze historical CPU and memory consumption to establish realistic requests for each workload. Use Kubernetes metrics, monitoring platforms, or automated rightsizing tools to identify overprovisioned workloads and adjust requests based on observed utilization, traffic patterns, and performance requirements.
Once resource requests are optimized, configure NodePool consolidation policies and monitor their effects on application performance, node utilization, and infrastructure costs. Start with conservative settings and gradually increase consolidation aggressiveness while tracking pod evictions, node replacements, and workload stability.
Related content: Read our guide to Kubernetes cost optimization
Allow a Wide Range of Instance Types, Especially for Spot
Karpenter can select from multiple EC2 instance families, sizes, architectures, and purchasing options to provision capacity that matches workload requirements. Restricting NodePools to a small number of instance types reduces this flexibility and can lead to higher infrastructure costs, longer provisioning times, or insufficient capacity errors.
For Spot Instances, instance diversity is particularly important because capacity availability changes across instance types and availability zones. Karpenter uses EC2's price-capacity-optimized allocation strategy to identify suitable Spot capacity, but its effectiveness depends on having enough eligible instance pools to choose from.
Avoid unnecessary restrictions on instance families, generations, and sizes. Instead, define constraints based on actual workload requirements, such as minimum CPU capacity, supported architectures, or hardware dependencies. Where appropriate, allow both Spot and On-Demand capacity to improve provisioning flexibility, and enable interruption handling to reduce the impact of Spot reclamation.
Schedule Disruption Budgets Around Peak Traffic Hours
Karpenter's consolidation and drift management mechanisms can remove or replace nodes while applications are running. Although these operations can reduce infrastructure costs and maintain node configurations, excessive disruption during peak traffic periods may affect application availability, increase latency, or create temporary resource shortages.
Configure NodePool disruption budgets to limit how many nodes Karpenter can voluntarily disrupt during specific time windows. For example, organizations can restrict consolidation during business hours, scheduled batch processing, or predictable traffic peaks while allowing more aggressive optimization during lower-demand periods.
Use scheduled disruption budgets alongside Kubernetes PodDisruptionBudgets (PDBs) to protect critical applications during node draining. Remember that NodePool disruption budgets do not prevent every type of termination, including node expiration and involuntary cloud infrastructure interruptions. Workloads should therefore maintain sufficient replicas and graceful termination settings to handle unexpected node loss.
Run the Karpenter Controller on Fargate or a Dedicated Node Group
The Karpenter controller is responsible for detecting unschedulable pods, provisioning instances, and managing node lifecycle operations. If the controller runs on nodes managed by Karpenter itself, node consolidation or termination could disrupt the controller and interfere with the cluster's ability to provision replacement capacity.
To avoid this dependency, deploy the Karpenter controller on AWS Fargate or a small, dedicated EKS managed node group that Karpenter does not control. This ensures the controller has stable infrastructure available even when dynamically provisioned worker nodes are removed or replaced.
For production environments, consider running multiple controller replicas across failure domains where supported, and configure appropriate resource requests, health checks, and scheduling constraints. Monitor controller availability and provisioning errors to detect issues before they affect application scaling.
Pin AMI Versions in Production Clusters
Karpenter uses Amazon Machine Images (AMIs) to configure the operating systems and runtime environments of provisioned EC2 instances. When an EC2NodeClass references the latest available AMI version, newly released images can introduce untested changes to the operating system, Kubernetes components, or node initialization process.
In production clusters, pin AMI versions to known, tested releases using the amiSelectorTerms configuration in the EC2NodeClass. For example, an Amazon Linux 2023 configuration can reference a specific version using an alias such as al2023@v20240807 rather than al2023@latest. This prevents Karpenter from automatically selecting newer AMIs before they have been validated.
Test new AMI releases in development or staging environments before updating production configurations. When rolling out approved versions, coordinate updates with Karpenter's drift detection and disruption budgets to control node replacement rates. This reduces the risk of widespread workload disruption while maintaining a consistent and secure node operating environment.
Making Karpenter More Efficient with Sedai
Karpenter provisions nodes based on the resource requests that pods declare, so inflated or outdated requests lead to larger nodes, lower density, and higher spend, regardless of actual utilization. Sedai is an autonomous optimization platform for the entire stack, from Kubernetes to VMs to data platforms to AI agents. For Kubernetes, it adds an intelligence layer to native autoscalers such as Karpenter, HPA, VPA, Cluster Autoscaler, and KEDA.
Sedai continuously right-sizes pod resource requests and tunes scaling targets based on real workload behavior and SLOs, so your autoscalers always work from accurate inputs, without manual tuning or pod restarts. Teams choose how much autonomy Sedai has per resource: recommendations only (Datapilot), engineer approval for each change (Copilot), or fully autonomous optimization within set goals (Autopilot).
Key capabilities of Sedai:
- Pod right-sizing for efficient bin-packing: Sedai right-sizes pods before Karpenter places them, allowing workloads to be packed onto fewer, cheaper nodes and reducing overall node spend.
- Instance type recommendations: Sedai recommends a targeted list of instance types based on usage and pricing, helping node autoscalers make more cost-effective selections instead of choosing from the full instance catalog without guidance.
- Autonomous HPA target tuning: Sedai analyzes workload behavior and SLOs to set the optimal HPA target, balancing pod size against replica count for the most cost-effective configuration.
- Conflict-free vertical and horizontal scaling: Sedai's vertical scaling works alongside HPA, safely adjusting pod requests and limits in small increments, without the conflicts that typically occur when running VPA and HPA together.
- Consolidation with or without Karpenter: Sedai's Smart Scheduler delivers node consolidation benefits whether you stay on Cluster Autoscaler or move to Karpenter.
- Safe migration to Karpenter: The Migration Assistant automates the cutover from EKS Managed Node Groups to Karpenter node pool by node pool, with a pre-flight compatibility check and automatic rollback built in.
- Application-aware scaling decisions: Sedai factors in application performance and SLOs, not just infrastructure metrics, so scaling decisions don't compromise reliability.
Learn more about how Sedai optimizes Kubernetes autoscalers, including Karpenter







