Learning center

EKS node group health issues: launch, join or configuration?

Read describe-nodegroup health issues and sort each code by what failed: the instance launch, the node join, or the group's own resources. The Auto Scaling group's activities settle which: a launch failure records a failed launch, while a join failure records a successful launch, often followed by a termination of the same instance.

Three groups of codes#

When a managed node group update or scale-out stalls, the node group lists what went wrong in health.issues, each with a fixed code, a message and the affected resource IDs. The API defines more than thirty codes, but the ones that stall a rollout fall into three groups, and each group has a different owner. Issue fields · Managed node group error codes

GroupCodesWhat happenedWho usually acts
Launch and capacityAsgInstanceLaunchFailures, InstanceLimitExceeded, InsufficientFreeAddressesEC2 did not start the instances the group asked forCapacity, quota or subnet owner
Join and bootstrapNodeCreationFailure, AccessDenied, ClusterUnreachableInstances started but did not register with the cluster, or EKS can't talk to itNode role, network path or launch template user data
ConfigurationEc2LaunchTemplateVersionMismatch, Ec2LaunchTemplateNotFound, AmiIdNotFound, IamInstanceProfileNotFound, IamNodeRoleNotFound, AutoScalingGroupNotFound, Ec2SecurityGroupNotFound, Ec2SubnetInvalidConfigurationA resource the group depends on was changed, deleted or set up differently from what EKS expectsWhoever changed that resource

The AWS descriptions behind the table:

  • AsgInstanceLaunchFailures: the Auto Scaling group is failing to launch instances. InstanceLimitExceeded: the account can't launch more instances of the type. InsufficientFreeAddresses: a subnet of the group lacks the IP addresses new nodes need.
  • NodeCreationFailure: launched instances can't register with the cluster; common causes are node IAM role permissions or no outbound internet access. AccessDenied: EKS or the nodes fail to authenticate or authorize with the API server, most often because the eks:node-manager ClusterRole or ClusterRoleBinding is missing. ClusterUnreachable: EKS or the nodes can't reach the API server.
  • Ec2LaunchTemplateVersionMismatch: the group's launch template version doesn't match the version EKS created, and reverting to that version may recover. Ec2SubnetInvalidConfiguration: a subnet does not auto-assign public IP addresses. The others say the named resource can't be found.

Issue codes · Managed node group error codes

Read the issues and the Auto Scaling group together#

Use a read-only profile and replace the uppercase placeholders. The node group names its Auto Scaling group, subnets and launch template. describe-nodegroup · Nodegroup fields

aws eks describe-nodegroup \
  --profile PROFILE --region REGION --cluster-name CLUSTER --nodegroup-name NODEGROUP \
  --query 'nodegroup.{status:status,version:version,release:releaseVersion,launchTemplate:launchTemplate,scaling:scalingConfig,subnets:subnets,asg:resources.autoScalingGroups[].name,issues:health.issues[].{code:code,message:message,resources:resourceIds}}' \
  --output json --no-cli-pager

Then ask the Auto Scaling group what it tried. A launch failure leaves a failed launch activity. A join failure leaves a successful launch activity for an instance that never appears as a node. That instance may still be InService, or the group may already have terminated it after a failed health check, so a missing instance in the current list does not prove the launch failed. Pair the launch and termination activities by the instance ID in their Description, and raise --max-items until the window covers the rollout. Scaling activities · Activity fields

aws autoscaling describe-scaling-activities \
  --profile PROFILE --region REGION --auto-scaling-group-name ASG_NAME --max-items 50 \
  --query 'Activities[].{start:StartTime,status:StatusCode,message:StatusMessage,description:Description}' \
  --output json --no-cli-pager

aws autoscaling describe-auto-scaling-groups \
  --profile PROFILE --region REGION --auto-scaling-group-names ASG_NAME \
  --query 'AutoScalingGroups[0].{desired:DesiredCapacity,template:LaunchTemplate,mixed:MixedInstancesPolicy.LaunchTemplate.LaunchTemplateSpecification,instances:Instances[].{id:InstanceId,az:AvailabilityZone,state:LifecycleState,health:HealthStatus,version:LaunchTemplate.Version}}' \
  --output json --no-cli-pager
Auto Scaling group showsNode group codeGroupNext read
Failed launch activities, no successful launch for the missing instancesAsgInstanceLaunchFailures or InstanceLimitExceededLaunch and capacityThe activity's StatusMessage: read the launch failure
Fewer instances than desired; the issue names a subnetInsufficientFreeAddressesLaunch and capacityFree addresses per subnet, below
Successful launches whose instances kubectl get nodes does not list, whether still InService or terminated sinceNodeCreationFailureJoin and bootstrapNode role, network path, user data
A launch template version that EKS did not createEc2LaunchTemplateVersionMismatchConfigurationLaunch template versions, below

For address exhaustion, count what each of the group's subnets has left. Stopped instances' addresses count as used. Subnet fields

aws ec2 describe-subnets \
  --profile PROFILE --region REGION --subnet-ids SUBNET_1 SUBNET_2 \
  --query 'Subnets[].{id:SubnetId,az:AvailabilityZone,free:AvailableIpAddressCount}' \
  --output json --no-cli-pager

For a version mismatch, list the versions of the template the Auto Scaling group uses and who created each. A version created by a person or a pipeline after EKS's last update is the change to look at. Launch template versions

aws ec2 describe-launch-template-versions \
  --profile PROFILE --region REGION --launch-template-id LAUNCH_TEMPLATE_ID \
  --query 'LaunchTemplateVersions[].{version:VersionNumber,created:CreateTime,by:CreatedBy,default:DefaultVersion}' \
  --output json --no-cli-pager

A group created without a custom launch template gets one EKS generates, and AWS says not to modify it by hand. To change nodes, update the node group through EKS. Managed node groups

What to change for each group#

  • Launch and capacity. Add instance types or Availability Zones, raise the instance quota, or free addresses in the group's subnets. A managed node group's subnets are fixed when it is created, and UpdateNodegroupConfig cannot change them, so more address space means a replacement node group in subnets with room. EKS recommends several instance types for this reason. The release is not at fault, and rolling it back does not add capacity.
  • Join and bootstrap. Check that the node role is the one the cluster's access entries or aws-auth ConfigMap name, that nodes in private subnets have a route to the cluster endpoint and image registry, and that custom user data still runs the EKS bootstrap. Each node has 15 minutes to join.
  • Configuration. Restore or recreate the resource the issue names, or revert the launch template to the version EKS created. Then rerun the update.

Nodes fail to join cluster · Node update phases

Confirm on the replacement nodes: health.issues is empty, the group's status is ACTIVE, and every instance the Auto Scaling group lists appears in kubectl get nodes as Ready with the group's label.

An illustrative scale-out#

This fixture is fictional. Node group checkout-ng in cluster prod spans subnet-0a1 and subnet-0b2 and scales from 6 to 12 nodes for a launch.

In the first outcome, health.issues lists InsufficientFreeAddresses naming subnet-0b2. The scaling activities show failed launches, describe-subnets shows 3 free addresses in subnet-0b2, and no new instance exists there. This is capacity. Freeing addresses in subnet-0b2, or moving to a new node group whose subnets have room, fixes it; the node configuration is fine.

In the second outcome, health.issues lists NodeCreationFailure. The Auto Scaling group shows 12 InService instances, but kubectl get nodes lists 6. The new instances came from a launch template version a pipeline created that morning, which attaches a security group that does not allow the nodes to reach the cluster's API endpoint. This is a join failure: restore the security group rule and rerun the scale-out.

Where this read misleads#

NodeCreationFailure covers more than bootstrap. During a node group update's scale-up, EKS lists insufficient capacity in the Availability Zone and EC2 instance limits among its known causes, alongside custom user data, nodes that never reach Ready, and the 15-minute limit. Check the Auto Scaling group's instances before you debug the join. If the update itself failed later, while draining old nodes, the code is PodEvictionFailure and the read is different: drain or join. Node update phases

These codes come from EKS's view of the group and of EC2 health checks. The EKS guide notes that they don't detect software problems, so a node that joined and then fails its workloads shows no issue here. The issue list reports the group's health now, not a history of earlier failures. Keep the output when you see it, alongside the other records in the signature table. Managed node group error codes

Questions#

What does NodeCreationFailure mean in an EKS managed node group?

Launched instances could not register with the cluster in time. Common causes are node IAM role permissions, no outbound path from the nodes, and custom user data that breaks the bootstrap. During an update, capacity and instance limits can produce it too, so check whether the instances launched.

How do I fix InsufficientFreeAddresses on an EKS node group?

One of the group's subnets has too few free IPv4 addresses for new nodes. Check AvailableIpAddressCount for each subnet, then free addresses in the existing ones. A managed node group's subnets cannot be changed after creation, so for more room create a replacement node group in subnets with free addresses and move the workloads to it.

What causes Ec2LaunchTemplateVersionMismatch?

The launch template version the group uses no longer matches the version EKS created, for example after a manual change to the launch template EKS manages, which AWS says not to edit. Reverting to the version EKS created may recover the group; make later changes through a node group update.

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading