Troubleshooting¶
NodeClass never becomes Ready¶
kubectl wait nodeclass/demo-default --for=condition=Ready times out.
Read the Conditions and Events at the bottom. The usual causes:
CreateLaunchTemplateAuthCheckFailed: Controller isn't authorized to call ec2:CreateLaunchTemplate. The NodeClass sets customtags, and the cluster IAM role isn't allowed to apply them. Add the inline policy from step 03, part 4. The NodeClass re-validates on its own within a minute or two.- The role has no access entry, or the access policy isn't associated. Re-run
the verify command in step 03. It must list
AmazonEKSAutoNodePolicy. - The role name is wrong.
spec.rolemust match$NODE_ROLE_NAMEexactly:grep role: manifests/10-nodeclass.yaml. - A selector matches nothing. Run the pre-check queries. If they're empty, the tag values don't match your cluster name, or you're not on an eksctl-created VPC: switch to the ID-based selectors on that page.
Server dry run rejects a manifest¶
kubectl apply --dry-run=server fails. The message names the field.
advancedCompute: an unknown field means the cluster's Auto Mode doesn't have the feature yet (it launched October 2026). An out-of-range error means a value is outside the allowed range: each supported sysctl has a documented minimum and maximum,maxPodsis 1–110, and soft eviction thresholds need a matchingsoftGracePeriod. Check the NodeClass docs.spec.disruption.consolidateAfter: Required value: Auto Mode requiresconsolidateAfterwhenever a NodePool has adisruptionblock, including on static pools. Set it (Neveron a static pool).- The static pool's
disruption.budgets: if your API server refuses them, remove thedisruptionblock from20-nodepool-stable-static.yaml. Drift is then limited only by the default budget, and you lose the business-hours window. weighton a static pool: not allowed. Static pools never take part in weight ordering.- Changing
replicasfrom set to unset: not allowed. A pool is static or dynamic for life; delete and recreate it.
Nodes launch but never join¶
NodeClaims appear but never become Ready; kubectl get nodes doesn't show them.
With associatePublicIPAddress: false, nodes need a route out to reach the EKS
API and ECR: a NAT gateway in the route tables of the subnets the NodeClass
selected (eksctl's default VPC has one), or VPC endpoints for ECR (api and
dkr), EKS, STS and S3. Confirm the NodeClass only selected private subnets
whose route table points at the NAT gateway:
If you set vpc.nat.gateway: Disable in cluster/cluster.yaml, nodes in
private subnets have no way out.
Static nodes never reach the replica count¶
kubectl get nodepool stable-static -o jsonpath='{.status.nodes}' stays below 2.
limits.nodesmust be at leastreplicas.- The requirements may be too narrow for your region:
m, generation > 5, 2 or 4 vCPU, on-demand, x86. Wideninstance-cpuor the families. - Check EC2 on-demand service quotas for standard instances in your region.
Spot pods stay Pending¶
kubectl get nodeclaims
kubectl describe nodeclaim <name>
kubectl -n demo-nodepools describe pod <pending-pod>
Usually one of:
- Spot capacity in your region for the allowed shapes. Widen the
requirements in
21-nodepool-spot-burst.yaml(moreinstance-cpusizes, more families). Breadth is the Spot reliability lever. - The pool's limit.
limits.cpu: "64"caps total vCPU of Spot nodes. - Only one half. The pod has the nodeSelector but not the toleration (that's Lab 1).
The tuning probe shows the default value¶
tuning-probe prints the same vm.max_map_count as the control pod.
- The probe landed on the wrong node. Check its pool:
kubectl -n demo-nodepools get pod tuning-probe -o wide, thenkubectl get node <node> -L karpenter.sh/nodepool. - The node was launched before
advancedComputewas in the NodeClass. Settings apply at boot; existing nodes only pick them up when drift replaces them.kubectl get nodeclaims -o wideshows node ages. - Do the 8-vCPU Spot nodes in
kubectl get nodes -o custom-columns=...show something other than 48? (27 on a 2-vCPU static node is expected.) Then the NodeClass on the cluster doesn't have the setting:kubectl get nodeclass demo-default -o jsonpath='{.spec.advancedCompute}'.
No events from eks-auto-mode/compute¶
Events expire, by default after an hour. Run the step close to when you look. For a durable record, enable the Auto Mode vended logs (see References).
kubectl logs fails with tls: internal error¶
The pod is on a node that's only seconds old, and its kubelet serving certificate isn't ready yet. Wait 20–30 seconds and retry.
The burst job failed¶
kubectl -n demo-nodepools get job report-batch shows Failed. If you changed
the NodeClass (or ran the drift lab) while the job was running, drift replaced
the Spot nodes and evicted the pods more times than backoffLimit allows.
Delete and re-apply the job:
Images won't pull¶
Every image comes from public.ecr.aws/docker/library/*. If your egress is
locked down, allow public.ecr.aws through your proxy or firewall, or mirror the
images to a private registry and change the image: lines. If pulls are
throttled, check that the AmazonElasticContainerRegistryPublicReadOnly policy
from step 03 is attached.
eksctl rejects version "1.37"¶
eksctl validates the version against EKS in your region. Upgrade eksctl (0.231.0 or later), and check that 1.37 is offered in your region:
kubectl warns about version skew¶
kubectl must be within one minor version of the cluster: 1.36, 1.37 or 1.38
for a 1.37 cluster. Install a matching version from
kubernetes.io.