Skip to Content
GuideRebalance ConfigurationKarpenter Extensions

Karpenter Extensions

Use CloudPilot AI Memory Extension with your existing AWS Karpenter. Karpenter continues to provision and replace nodes; CloudPilot adds memory-extension configuration to the NodeClasses and NodePools you select.

This guide covers clusters connected as EKS with Karpenter. For CloudPilot-managed Node Autoscaler, use the Memory Extension guide. The memory tiers and container allowance explanation applies to both modes.

Before you begin

  • An Amazon EKS cluster running Kubernetes 1.34 or later, with your Karpenter controller already installed and working.
  • Karpenter’s EC2NodeClass and NodePool CRDs serving the v1 API.
  • AL2023 NodeClasses and supported Linux amd64 or arm64 nodes. NRI also requires containerd NRI and cgroup v2 support.
  • A connected CloudPilot Agent installed through EKS with Karpenter. When adding a cluster, choose this connection type to keep your existing AWS Karpenter.
  • kubectl, Helm, jq, and curl in the terminal used for installation, with kubectl targeting this cluster and sufficient installation permissions.

Data Protection Mode is unavailable for this connection. CloudPilot needs snapshots of your native NodeClass and NodePool configuration, including NodeClass user data. Review that configuration before connecting the cluster.

The Extensions installer adds the CloudPilot extension components alongside your controller. It does not replace your Karpenter or take over native provisioning configuration. Workload Autoscaler is optional and is managed independently.

1. Install Extensions

  1. Open the connected cluster and select Node Autoscaler > Overview. For this connection, the page is titled Extensions.
  2. Select Install Extensions.
  3. Copy the generated command and run it in a terminal connected to this EKS cluster. Use the command for this specific cluster; it contains the connection details required by the installer.
  4. Return to the dialog and select Check installation. Allow time for the Agent to report the result, then refresh the page if needed.

When the page shows Extensions installed, the extension Controller Deployment and NRI DaemonSet have been detected. This does not mean every node is ready or that either policy is enabled. Configure the NodeClass and NodePool next.

Extensions overview with the installation state and native NodeClass and NodePool policies

The overview lists the resources synced from your cluster. Memory Extension on a NodeClass provides node capacity; Auto memory extension (NRI) on a NodePool controls eligible containers’ allowances.

2. Enable Memory Extension on a NodeClass

  1. Select a NodeClass from Extensions, or open Node Autoscaler > Node Class and select its name.
  2. Inspect Current configuration. This is a read-only snapshot of the native EC2NodeClass; manage its AMI, IAM, networking, disks, and other native settings through your existing Karpenter workflow.
  3. Open Extensions in the resource editor and enable Memory Extension.
  4. Start with the default values below, or adjust them for your workload and disk capacity.
  5. Select Save changes, review the rollout impact, and select Confirm and save.

If the switch reports that AL2023 is required, update the native NodeClass through your existing workflow first, then wait for the refreshed configuration to appear.

NodeClass extension editor with Memory Extension capacity settings

An unsaved example with the default settings; save and wait for synchronization to apply it.

SettingDefaultAllowed values
Cold memory target30%1–100% of physical RAM
Minimum cold memory2 GiB1–64 GiB
Maximum cold memory16 GiB1–64 GiB; at least the minimum
Root disk limit20%1–50% of the root disk
Cached memory limit20%1–40% of physical RAM

These fields use whole numbers. Cold-memory capacity is constrained by the node’s RAM, configured bounds, available disk space, and safety headroom; the target is not a guaranteed allocation. Cached memory consumes RAM and is not additional capacity to add to the cold-memory target.

Updated bootstrap configuration applies to new nodes. A NodeClass bootstrap change can mark existing nodes as drifted. Your Karpenter can replace those nodes and reschedule workloads according to the referencing NodePools’ disruption budgets. Review those budgets, replicas, and spare capacity before saving.

3. Enable automatic container allowances on a NodePool

Wait for the NodeClass policy to be applied, then configure each NodePool that should use NRI:

  1. Select the NodePool from Extensions or Node Autoscaler > Node Pool.
  2. Confirm that its referenced NodeClass has Memory Extension enabled. Native requirements and placement configuration remain read only in CloudPilot.
  3. Open Extensions and enable Auto memory extension (NRI).
  4. Set Memory multiplier. The initial value is 1.5; it must be greater than 1 and at most 10, with at most three decimal places.
  5. Select Save changes, review the changes and replacement impact, and select Confirm and save.

The console checks the Kubernetes version, NodeClass dependency, and NodePool architecture requirements before allowing NRI to be enabled. Change unsupported native requirements through your existing Karpenter workflow.

NodePool extension editor showing Auto memory extension (NRI) unavailable until its NodeClass has Memory Extension enabled

This screenshot shows the dependency check before the NodeClass policy is enabled. After the NodeClass policy has been applied, enable Auto memory extension (NRI); the Memory multiplier field then appears.

NRI assigns allowances when supported regular application containers in Burstable Pods are created. Containers need a positive memory limit or request:

baseline = positive memory limit, otherwise positive memory request cold-memory allowance = baseline × (multiplier − 1)

For example, a 1 GiB memory limit and 1.5x multiplier gives a 512 MiB cold-memory allowance in addition to the existing 1 GiB hot-memory limit. A request-only container gets an allowance based on its request, without introducing a hard total-memory limit.

The multiplier does not change Kubernetes requests or limits, increase Node Allocatable, reserve cold-memory capacity, or enlarge the node’s disk. Allowances can exceed shared node capacity in aggregate; OOM kills and evictions remain possible.

NodePool template changes can also trigger Karpenter drift and replacement. After the updated policy and NRI component are ready on the target nodes, roll out existing workloads if needed: running containers retain their creation-time allowances. See supported Pods and containers for QoS, namespace, opt-out, and container eligibility rules.

4. Verify application and node readiness

Enabling a switch saves the intended policy. Check the resource’s Status, hover over its badge for details, and allow the Agent to apply and report the configuration.

StatusWhat to check
PendingThe Agent has not yet applied or reported the policy. Check Agent connectivity and refresh after synchronization.
ConfiguredConfiguration was applied. There may be no matching nodes yet, or NRI may be disabled; this does not prove workloads are using cold memory.
Pending replacementA matching node predates the current bootstrap configuration, or NRI readiness/current policy is not yet synchronized. Check replacement progress and the badge message.
ActiveMatching nodes exist and the checked nodes have the current policy and required NRI readiness. Confirm workload behavior and metrics as well.
ConflictThe resource changed after its last snapshot, or another tool changed extension-owned fields. Refresh the resource and resolve ownership before retrying.
ErrorRead the badge message and check the Agent and extension component logs for rendering or apply failures.

Verify that replacement nodes are Ready and NRI is ready on the same nodes as your applications:

kubectl -n cloudpilot get deployment cloudpilot-controller kubectl -n cloudpilot get daemonset cloudpilot-nri-plugin kubectl -n cloudpilot get pods \ -l app.kubernetes.io/name=cloudpilot-nri-plugin -o wide kubectl -n <namespace> get pod <pod-name> -o wide

A DaemonSet with no eligible nodes is not proof that a workload is ready. Monitor node MemoryPressure and DiskPressure, root disk headroom, application latency, and Pod OOM/restart events.

The Memory Extension card on the overview reports swap use, zswap cached pages, compression ratio, node coverage, memory pressure, and swap I/O. Use its scope and time-range controls to inspect the relevant NodePool or node. Collecting or missing values can mean observations have not arrived; partial coverage describes reporting nodes only. Swap use is not a measurement of RAM saved or disk writes.

Keep your existing Karpenter workflow

Continue using your existing tools for native EC2NodeClass and NodePool configuration. CloudPilot’s Current configuration view is read only; extension policies are edited separately.

Coordinate GitOps reconciliation with CloudPilot’s extension-owned bootstrap parts, labels, annotations, and startup configuration. Reverting these fields externally can put the policy into Conflict and pause further application. Resolve the conflicting change, then update the extension policy to resume. CloudPilot preserves customer-owned fields and user-data parts.

If the resource changes while you have unsaved edits, review the resource-change notice. Choose Reload latest settings to start from the current policy, or Keep my changes to review your draft against the latest resource before saving.

Change or disable Extensions

  • Tune node capacity: save the NodeClass settings and let new or replacement nodes receive the updated bootstrap configuration.
  • Tune NRI allowances: save the NodePool multiplier, wait for policy synchronization, then recreate or roll out containers that need the new allowance.
  • Disable NRI: turn off Auto memory extension (NRI) on the affected NodePools, save, and wait for the Agent to remove their extension policy/startup configuration. Existing containers retain their allowances until recreated.
  • Disable Memory Extension: first disable NRI on every NodePool referencing that NodeClass. After those changes are applied, turn off the NodeClass switch and replace affected nodes through your normal availability controls.

Use the console-generated upgrade command for this EKS with Karpenter connection when upgrading components. Automatic cluster upgrades are not supported for this mode. The external-Karpenter upgrade updates the Agent and, if already installed, Extensions; Workload Autoscaler remains independent.

Disabling a policy is separate from disconnecting a cluster. The cluster’s Uninstall command is a full CloudPilot disconnect and can remove the Agent and Workload Autoscaler; use it only when you intend to disconnect the cluster.

Last updated on