Karpenter Cheatsheet

← All cheatsheets
$ kubectl get nodepools,nodeclaims
IntermediateAutoscalingUpdated October 2026

Inspect NodePools and NodeClaims, watch Karpenter launch and consolidate nodes, and control disruption on AWS EKS.

Install

Follow the Karpenter getting started guide for IAM setup. Set KARPENTER_VERSION and CLUSTER_NAME first.

helm upgrade --install karpenter oci://public.ecr.aws/karpenter/karpenter --version "${KARPENTER_VERSION}" --namespace kube-system --set settings.clusterName=${CLUSTER_NAME} --waitInstall or upgrade Karpenter

Inspect

kubectl get nodepoolsList NodePools
kubectl get ec2nodeclassesList AWS node classes
kubectl get nodeclaims -o wideList nodes Karpenter launched
kubectl describe nodeclaim NODECLAIM_NAMESee why a node was launched or failed
kubectl get nodes -L karpenter.sh/nodepool -L node.kubernetes.io/instance-type -L karpenter.sh/capacity-typeShow pool, instance type and spot or on-demand
kubectl logs -n kube-system -l app.kubernetes.io/name=karpenter -fFollow Karpenter logs

Control disruption

kubectl annotate pod mypod karpenter.sh/do-not-disrupt=trueProtect a pod from consolidation
kubectl annotate node NODE_NAME karpenter.sh/do-not-disrupt=trueProtect a node
kubectl delete nodeclaim NODECLAIM_NAMEDrain and remove a Karpenter node
kubectl scale deployment inflate --replicas 10Trigger a scale-up to test

NodePool example

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", "arm64"]
      nodeClassRef:
        group: karpenter.k8s.aws
        kind: EC2NodeClass
        name: default
  limits:
    cpu: "1000"
  disruption:
    consolidationPolicy: WhenEmptyOrUnderutilized
    consolidateAfter: 1m