Runbook: Karpenter Not Launching Nodes
Applies to: self-managed Karpenter v1.x (karpenter.sh/v1 NodePool and NodeClaim, karpenter.k8s.aws/v1 EC2NodeClass). EKS Auto Mode uses the same NodePool and NodeClaim model with a managed controller; the NodeClaim steps apply, but you can’t read the controller logs.
Typical severity: Sev 2. Running workloads are fine; scale-out, rollouts and node replacement stall.
Tested: not run on a live cluster; commands checked for syntax.
Symptoms
-
Pods stay
PendingwithFailedSchedulingfrom the default scheduler, and no new nodes appear. -
Karpenter events on the Pod, for example:
Warning FailedScheduling karpenter Failed to schedule pod, incompatible requirements, key karpenter.sh/capacity-type, ... Warning FailedScheduling karpenter Failed to schedule pod, no instance type met the scheduling requirements or had enough resources, requirements=..., resources=... Warning FailedScheduling karpenter Failed to schedule pod, all available instance types exceed limits for nodepool Normal Nominated karpenter Pod should schedule on: nodeclaim/default-8x2kq" -
NodeClaims appear and disappear repeatedly, or stay
READY=Unknown.
Impact
Nothing that is already running breaks. Anything that needs new capacity waits: HPA scale-out, new deployments, and replacements for nodes that Karpenter itself is disrupting (drift, expiry or consolidation stall too).
Inputs
Variables follow command conventions; run its safety checks first.
export CLUSTER=my-cluster REGION=us-east-1
export NS=<namespace> POD=<pending pod>
export KARPENTER_NS=$(kubectl get deploy -A -l app.kubernetes.io/name=karpenter -o jsonpath='{.items[0].metadata.namespace}')Triage
Work down the chain: Pod → Karpenter controller → NodePool → EC2NodeClass → NodeClaim → Node. Stop at the first broken link.
1. What does Karpenter say about the Pod?
kubectl get events -n "$NS" --field-selector involvedObject.name="$POD" --sort-by=.lastTimestampNominatedfor a NodeClaim → Karpenter launched capacity for it. Go to step 5.incompatible requirements, orno instance type met ...→ the Pod’s requirements or requests don’t match what any NodePool can offer (cause B). The message lists the requirements and resources Karpenter tried.exceed limits for nodepool, ornode limits have been exhausted for nodepool→ the NodePoollimitshave been reached (cause C).- A
NoCompatibleInstanceTypesevent on the NodePool (kubectl get events -A --field-selector reason=NoCompatibleInstanceTypes) means its requirements filter out every instance type available (cause B).
Message wording comes from the Karpenter source at the time of writing; it changes between releases, so match on the key phrase.
- No Karpenter events at all → the controller isn’t running or isn’t seeing the Pod (cause A).
2. Is the controller healthy?
kubectl get pods -n "$KARPENTER_NS" -l app.kubernetes.io/name=karpenter
kubectl logs -n "$KARPENTER_NS" -l app.kubernetes.io/name=karpenter --tail=300 \
| grep -iE '"level":"error"|AccessDenied|Unauthorized|InsufficientInstanceCapacity|VcpuLimitExceeded|InvalidParameter' | tail -20- Expect: pods
Running, one of them the leader, and no repeating errors. - If you see
AccessDeniedorUnauthorizedOperationonec2:CreateFleet,ec2:RunInstances,iam:PassRoleorssm:GetParameter→ controller IAM (cause A).
3. Do the NodePools allow this Pod, and do they have headroom?
kubectl get nodepools
kubectl get nodepool <name> -o jsonpath='{.spec.limits}{"\n"}{.status.resources}{"\n"}'
kubectl get nodepool <name> -o jsonpath='{.spec.template.spec.requirements}' | jq
kubectl get nodepool <name> -o jsonpath='{.spec.template.spec.taints}' | jq
kubectl get pod "$POD" -n "$NS" -o jsonpath='{.spec.nodeSelector}{"\n"}{.spec.affinity}{"\n"}{.spec.tolerations}{"\n"}' | jq -R
kubectl get pod "$POD" -n "$NS" -o jsonpath='{range .spec.containers[*]}{.resources.requests}{"\n"}{end}'Compare each Pod constraint with the NodePool: kubernetes.io/arch, karpenter.sh/capacity-type, topology.kubernetes.io/zone, instance family or size, and taints the Pod doesn’t tolerate. A request larger than the biggest allowed instance type, after DaemonSet overhead, can never be satisfied.
4. Is the EC2NodeClass ready?
kubectl get ec2nodeclasses
kubectl describe ec2nodeclass <name> | sed -n '/Conditions:/,/Events:/p'- Expect:
READY=True, and status conditionsSubnetsReady,SecurityGroupsReady,AMIsReadyandInstanceProfileReadyallTrue. - If one is
False→ selector or IAM problem (cause D). The condition message names which.
5. Did a NodeClaim launch and join?
kubectl get nodeclaims -o wide
kubectl describe nodeclaim <name> | sed -n '/Conditions:/,/Events:/p'| NodeClaim condition | Meaning |
|---|---|
Launched=False | EC2 refused the launch (cause E). The message carries the EC2 error |
Launched=True, Registered=False | The instance runs but the kubelet never joined (cause F) |
Registered=True, Initialized=False | The node joined but isn’t usable yet: startup taint, CNI or device plugin (cause G) |
| NodeClaims created and deleted every ~15 minutes | Registration never succeeds; Karpenter gives up and retries (cause F) |
Diagnosis
| Signal | Cause | Fix |
|---|---|---|
| No Karpenter events; controller down or IAM errors | A. Controller unhealthy or missing permissions | Fix A |
incompatible requirements, no instance type met ... | B. Pod constraints match no NodePool | Fix B |
exceed limits for nodepool, node limits have been exhausted | C. NodePool limits reached | Fix C |
EC2NodeClass READY=False | D. Subnet, security group, AMI or role selector broken | Fix D |
NodeClaim Launched=False | E. EC2 capacity, quota or launch error | Fix E |
Registered=False | F. Node can’t join the cluster | Fix F |
Initialized=False | G. Node joined but isn’t ready for Pods | Fix G |
Fix
A. Controller unhealthy or missing permissions
- Crash-looping: read
kubectl logs ... --previous. After an upgrade, check that the CRDs match the controller version. The Karpenter chart doesn’t upgrade CRDs; they come from the separatekarpenter-crdchart. - IAM: find the controller role. With Pod Identity, run
aws eks list-pod-identity-associations --cluster-name "$CLUSTER" --namespace "$KARPENTER_NS"; with IRSA, read the service account annotation. Compare its policy with the controller policy for your Karpenter version, especiallyiam:PassRoleon the node role and theec2:CreateFleetconditions. For workload credential problems, see workload AccessDenied. - Not the leader: if all pods are running but none is acting, look for lease or leader-election errors. The controller needs to reach the API server.
Verify: after a restart, the Pod gets a Nominated event within a minute.
B. Pod constraints match no NodePool
Decide which side is wrong:
- The Pod asks for something you don’t offer (
arm64, a GPU, an AZ the NodePool excludes,on-demandonly) → fix the workload, or add a NodePool for that class of capacity. - The NodePool is too narrow → widen
requirements, for example add instance families or sizes, or allowspotandon-demand. - Taint mismatch → the Pod needs a toleration for the NodePool’s taints, or it belongs in another NodePool.
Verify: the Karpenter event changes to Nominated.
Undo: revert the NodePool change through its owner (GitOps or IaC).
C. NodePool limits reached
Limits are a cost and blast-radius guard. Confirm the growth is legitimate, not a runaway HPA or a crash-looping Job creating Pods. Then raise spec.limits.cpu or memory on the NodePool, or add a weighted fallback NodePool.
kubectl get pods -A --field-selector status.phase=Pending --no-headers | awk '{print $1}' | sort | uniq -c | sort -rn | headUndo: restore the previous limit once demand drops, if the raise was temporary.
D. EC2NodeClass not ready
SubnetsReadyorSecurityGroupsReadyfalse → the selector matches nothing. Usually a missingkarpenter.sh/discovery: <cluster>tag, or a subnet ID that no longer exists. Check withaws ec2 describe-subnets --filters Name=tag:karpenter.sh/discovery,Values="$CLUSTER".AMIsReadyfalse → theamiSelectorTermsalias or ID doesn’t resolve. For example, a pinnedal2023@v<date>that isn’t valid for the cluster version, or a custom AMI shared from another account.InstanceProfileReadyfalse → theroledoesn’t exist, or the controller can’t create its instance profile.
Verify: READY=True, then a NodeClaim appears for the pending Pods.
E. EC2 refused the launch
Read the NodeClaim message and the controller log:
| Error | Fix |
|---|---|
InsufficientInstanceCapacity | Karpenter retries other types and zones automatically. If every allowed type is exhausted, widen families, sizes, zones or capacity types. A NodePool restricted to one or two Spot types is the usual culprit |
VcpuLimitExceeded / MaxSpotInstanceCountExceeded | Account quota. Request an increase in Service Quotas (“Running On-Demand Standard instances”, “All Standard Spot Instance Requests”); meanwhile allow the other capacity type |
InsufficientFreeAddressesInSubnet | Subnet full; see IP exhaustion |
| Instance launches, then terminates within seconds | Usually an encrypted EBS root volume whose KMS key policy doesn’t allow the EC2 service or the node role to use it. Check StateTransitionReason with aws ec2 describe-instances |
UnauthorizedOperation | Controller IAM (Fix A) |
F. Node can’t join
The instance is running but its kubelet can’t register. Check these in order:
- Access entry for the node role:
aws eks list-access-entries --cluster-name "$CLUSTER"must include the EC2NodeClassrolewith typeEC2_LINUX. Onaws-authclusters it needs amapRolesentry. A missing entry givesUnauthorizedin the kubelet log. - Network: the node’s security groups and subnet routes must reach the cluster endpoint on 443, and reach ECR, S3 and STS (through a NAT or VPC endpoints) to pull
aws-nodeandkube-proxy. - User data: custom
userDatain the EC2NodeClass (AL2023NodeConfig) that’s malformed stopsnodeadm. Read the console output:aws ec2 get-console-output --instance-id <id> --latest --output text | grep -i nodeadm.
For a deeper look on the instance, follow Node NotReady Triage step 4.
G. Node joined but isn’t initialized
- A
startupTaintsentry in the NodePool that nothing removes (for example a taint that a missing agent was supposed to clear). aws-nodenot ready on the new node:cni plugin not initialized(see Node NotReady, Fix step 1).- An extended resource the Pod requests (such as
nvidia.com/gpu) that never appears, because the device plugin DaemonSet doesn’t run on that node.
Verify recovery
kubectl get nodeclaims -o wide # READY=True for the new claims
kubectl get pods -A --field-selector status.phase=Pending
kubectl get events -A --field-selector reason=Nominated --sort-by=.lastTimestamp | tailPending Pods are bound and Running, and drift or consolidation (if they were paused behind the failure) resumes.
Escalate
Open an AWS Support case for persistent InsufficientInstanceCapacity across a wide instance selection in an AZ, or for launch failures that are internal EC2 errors. Attach the NodeClaim YAML, controller log excerpts with request IDs, the region and AZs, and the instance types tried. Karpenter bugs go to the Karpenter GitHub project or aws/karpenter-provider-aws.
Prevent
- Alert on Pods
Pendinglonger than five minutes (kube_pod_status_phase{phase="Pending"}), and on NodePool usage approaching its limits. - Allow many instance families and sizes per NodePool, especially for Spot. Narrow NodePools are the main cause of capacity errors.
- Keep the controller IAM policy, CRDs and controller version in one IaC module, and upgrade them together.
- Run the controller on capacity Karpenter doesn’t manage (a small managed node group, or Fargate), so it can recover the cluster.