Failed to Create Pod Sandbox on EKS: Causes and Fix

Logeshwaran
—

"Failed to create pod sandbox" means the node couldn’t build the Pod’s network, so the Pod stays stuck in ContainerCreating.

The short version: run kubectl describe pod POD -n NAMESPACE and read the words after "failed to create pod sandbox" in the Events. On EKS it is nearly always one of four things. "failed to assign an IP address to container": the subnet or the node has run out of IPs, so check free addresses with aws ec2 describe-subnets, then turn on prefix delegation or add a subnet. NetworkPluginNotReady / "cni plugin not initialized": the aws-node Pod on that node isn’t healthy, so check kubectl -n kube-system get pods -l k8s-app=aws-node -o wide. An IAM permission the VPC CNI needs to manage network interfaces is missing (AmazonEKS_CNI_Policy). Or the node can’t pull the pause (sandbox) image. Don’t restart Pods or nodes until you’ve read that event line: restarts hide the evidence and fix none of the four.

Quick answer: diagnose the sandbox before restarting containers

A Pod stuck in ContainerCreating with FailedCreatePodSandBox has not completed a basic network setup operation. Start with kubectl describe pod. If the event says failed to assign an IP address to container, check the subnet, node ENI/IP capacity, and the aws-node VPC CNI. If it says NetworkPluginNotReady, check the CNI binaries, DaemonSet readiness, and kubelet status. Restarting the application container, changing the image or raising its memory limit will not repair a network allocation problem.

Work in layers: pod event → node → subnet → CNI daemon → EC2 API and IAM → optional pod security groups → only then pod-specific settings. Record your current configuration before making a production change.

What the Pod sandbox actually is

Kubernetes asks its container runtime to create a sandbox before starting normal application containers. The sandbox holds the Pod network namespace and related infrastructure. The kubelet invokes the CNI integration so the Pod gets its IP address and routes. In the standard EKS VPC CNI implementation, the CNI binary and ipamd coordinate with VPC elastic network interfaces (ENIs). If an address cannot be allocated or the network cannot be configured, the kubelet retries sandbox creation; the workload remains in ContainerCreating and application logs may not exist yet.

This also explains a frequently confusing symptom: a Deployment is created successfully and the scheduler places a Pod on a node, but the workload does not start. Scheduling success proves only that the scheduler found an eligible node, not that the node can attach the network resources it needs.

Your Pod's events usually name the failing step outright, so read them before you change a single setting.

Read the event text before changing anything

kubectl get pods -A -o wide
kubectl describe pod POD_NAME -n NAMESPACE
kubectl get events -A --sort-by=.lastTimestamp | tail -60

Look for FailedCreatePodSandBox, failed to setup network for sandbox, failed to assign an IP address to container, NetworkPluginNotReady: cni plugin not initialized, and failed to create pod sandbox. The last message is generic; the line after it matters most. Copy the exact timestamp, Pod UID, node name, and networking error into your incident notes.

If you instead see FailedPull or ImagePullBackOff, investigate registry permissions, DNS, and internet/VPC endpoint connectivity. If FailedMount appears, look at EBS/EFS CSI and volume configuration. These can produce similar waiting states but are different failure stages.

Failure message to first investigation map

Event textMost likely layerFirst check
failed to assign an IP addressIPAM, subnet, ENI limitssubnet available IPs, ipamd log
NetworkPluginNotReadyCNI bootstrap, kubeletaws-node readiness and node journal
failed to set up pod networkCNI binary or host setupCNI logs and detailed event
cannot create network interfaceEC2 API, IAM, limitsnode role and ipamd EC2 errors
failed to pull imageimage retrievalregistry, credentials, networking

If only some of your Pods fail, find out whether they share a node. That one answer cuts your search in half.

Check whether the node or the Pod is the outlier

kubectl get pod POD_NAME -n NAMESPACE -o wide
kubectl describe node NODE_NAME
kubectl get nodes -o wide
kubectl get pods -A --field-selector spec.nodeName=NODE_NAME -o wide

Compare your failing node to a healthy node of the same instance type and Availability Zone. Look for taints, capacity, allocated Pods, Ready status, DiskPressure, and the kubelet maxPods ceiling. If failures cluster on one EC2 instance, suspect its ENIs, host filesystem, or local CNI process; if failures affect an entire Availability Zone, start with subnet utilization and subnet-specific configuration.

Your first suspect is simple arithmetic: does your subnet still have addresses to give? You can answer that with one command.

Check subnet IPv4 availability with AWS CLI

aws ec2 describe-subnets --subnet-ids subnet-0123456789abcdef0 \
  --query 'Subnets[].{Subnet:SubnetId,AZ:AvailabilityZone,CIDR:CidrBlock,Available:AvailableIpAddressCount}' \
  --output table

The AvailableIpAddressCount value reveals address pressure, not necessarily how many new Pods can be started. ENIs, spare warm addresses, and subnet reservations consume IPs; some addresses are reserved by AWS. Prefix assignment requires a contiguous /28 block, which may not exist even when several free addresses are scattered across a heavily used subnet. Inspect all subnets in your node's Availability Zone, not merely the first subnet shown in your cluster console.

Why each EC2 instance type has a different Pod ceiling

An EC2 type allows a bounded number of ENIs and addresses per ENI. The default VPC CNI allocates Pod IPs from secondary addresses attached to those interfaces. Once the addresses or ENI attachment slots on that node run out, new Pods cannot acquire IPs even if the node has ample CPU and memory. The maxPods kubelet setting adds a second, separate scheduling limit. More nodes can help distribute demand, but scaling nodes into an exhausted subnet cannot create new IPv4 addresses.

Use the AWS-published ENI and IP limits and EKS max-pods-calculator.sh for your exact instance type and networking mode. Use the maximum for your own EC2 instance type, not one from a blog written for a different family.

If your subnet has room, the next place to look is the CNI's own logs on the node that failed.

Read aws-node and ipamd logs

kubectl -n kube-system get daemonset aws-node
kubectl -n kube-system get pods -l k8s-app=aws-node -o wide
kubectl -n kube-system logs AWS_NODE_POD -c aws-node --since=30m
kubectl -n kube-system describe pod AWS_NODE_POD

On Linux EC2 nodes, inspect /var/log/aws-routed-eni/ipamd.log and /var/log/aws-routed-eni/plugin.log when accessible through SSH or Systems Manager. Look for insufficient subnet addresses, inability to attach an ENI, IAM UnauthorizedOperation, EC2 API throttling, unavailable prefixes, and errors from the IP address warm pool. Container logs and host logs serve different purposes; include both in a support case.

Verify the VPC CNI add-on version and health

aws eks describe-addon --cluster-name CLUSTER_NAME \
  --addon-name vpc-cni --query 'addon.{version:addonVersion,status:status,issues:health.issues}'
aws eks describe-addon-versions --addon-name vpc-cni \
  --kubernetes-version CLUSTER_K8S_VERSION
kubectl -n kube-system rollout status daemonset/aws-node

A CNI release must be supported on the EKS Kubernetes version. Pick the add-on version that matches your cluster version rather than the newest tag. When your cluster uses the managed add-on, update using the EKS add-on APIs or your infrastructure-as-code source. If the CNI is self-managed, use its documented manifests and reconcile conflicts carefully. Record custom environment variables before the update, especially warm-pool settings and prefix delegation.

Check IAM permissions for ENI operations

The VPC CNI needs appropriate EC2 permissions to describe, attach, and manage network interfaces and their addresses. For a conventional configuration, verify the AmazonEKS_CNI_Policy permissions are present on the identity actually used by the CNI—often an IRSA role, rather than assuming the node role is always responsible. Private subnet connectivity to AWS APIs also matters. A policy may be correct while EC2 API calls still fail because networking blocks the required endpoint.
kubectl -n kube-system get serviceaccount aws-node -o yaml
kubectl -n kube-system describe pod AWS_NODE_POD

If you use prefix assignment, ensure the CNI has the additional permissions required to assign and unassign IPv4 prefixes. Examine access-denied events before changing IAM broadly.

If your nodes keep running out of Pod addresses, this is the setting you will most likely end up changing.

Prefix delegation: what actually changes

With VPC CNI IPv4 prefix mode, an ENI slot can hold a /28 prefix instead of a single secondary IPv4 address. A /28 provides 16 addresses for allocation, so the node can support a substantially larger Pod address pool within its ENI slot constraints. It does not produce infinite addresses and does not override kubelet limits, CPU capacity, or available IP blocks in the subnet.
kubectl -n kube-system set env daemonset/aws-node ENABLE_PREFIX_DELEGATION=true
kubectl -n kube-system rollout status daemonset/aws-node

For production, prefer the equivalent declarative configuration in the EKS-managed add-on or IaC rather than leaving a one-off live patch. Adjust WARM_PREFIX_TARGET or other warm-pool settings for a predictable buffer. Review maxPods on new nodes, and roll nodes where needed so their capacity assumptions match the new CNI mode. Raise maxPods only after you have checked the available IPs, CPU and memory.

The contiguous /28 fragmentation trap

A subnet may have, for example, 80 unallocated IPv4 addresses while no contiguous /28 remains. Prefix assignment then fails despite a nonzero available IP count. The solution can be a new, less fragmented subnet, subnet CIDR reservation for prefixes, or an alternate subnet configuration—not endless restarts of aws-node. Look for prefix-allocation errors in ipamd logs and consider planned node migration if the existing subnet has reached an allocation dead end.

Custom networking with a secondary VPC CIDR

Custom networking assigns Pod IP addresses from an alternative subnet described by an ENIConfig custom resource. Attach a suitable secondary IPv4 CIDR block to the VPC, create Pod subnets for each Availability Zone, and define the target subnet and security groups for each zone. Example:
apiVersion: crd.k8s.amazonaws.com/v1alpha1
kind: ENIConfig
metadata:
  name: us-east-1a
spec:
  subnet: subnet-EXAMPLE-POD-SUBNET
  securityGroups:
    - sg-EXAMPLE-POD-SG

Set AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFG=true and configure each node's ENIConfig selection. Plan new nodes and controlled drains. Custom networking consumes ENI capacity differently because Pods do not use the primary ENI's addresses, so maxPod calculations must be revised. It is not an emergency command to run without subnet, routing, and security-group planning.

Enhanced subnet discovery as another option

For eligible Linux EC2 nodes with VPC CNI 1.18.0 or newer, enhanced subnet discovery can locate alternate same-VPC, same-AZ subnets tagged kubernetes.io/role/cni. It is on by default from VPC CNI 1.18.0 (the ENABLE_SUBNET_DISCOVERY setting), so tagging a spare subnet in the same Availability Zone is usually the only change you need. That can relieve pressure without the operational overhead of an ENIConfig for each zone. Review the CNI mode and cluster requirements: custom networking takes precedence when enabled. Neither method makes the Pod addresses route correctly if the new subnets lack appropriate security groups and routes.

Security groups for Pods and trunk ENIs

Security Groups for Pods changes the networking mechanism for selected Pods. Set ENABLE_POD_ENI=true on supported configurations, ensure the cluster role has permissions such as the AmazonEKSVPCResourceController managed policy, and verify that supported instances receive trunk and branch ENIs. A SecurityGroupPolicy targets Pods using selectors. If the trunk ENI cannot be attached or there are no available branch ENI resources, Pod networking may not complete.

Inspect your VPC resource controller events, the EC2 instance ENIs, SecurityGroupPolicy selection, trunking-compatible instance types, and subnet address availability. Security group rules are primarily about permitted traffic after networking exists; missing trunk or branch resources can stop sandbox creation itself.

Windows node troubleshooting is different

Windows nodes use a Windows-specific networking and host configuration path. The Windows VPC resource controller provisions Pod address resources, and there are different limitations for ENIs, address allocation, prefix mode, and HNS networking. Leave Linux-only host paths alone on Windows, and skip restarting Linux aws-node pods as a universal Windows remedy. Inspect Windows kubelet and host networking events, the relevant Amazon VPC CNI configuration map, available Pod IPs, and supported Windows AMI/CNI combinations.

Windows prefix delegation can increase address density, but the configuration switch and Pod density formula differ from Linux. Security Groups for Pods and some networking modes are not interchangeable between the operating systems.

Separate CNI failures from kubelet, runtime and image failures

SymptomLikely ownerWhere to inspect
Pod scheduled, sandbox CNI add failsCNI/IPAMaws-node and ipamd
NetworkPluginNotReady and node not readyCNI startup or kubeletnode conditions, kubelet journal
ContainerCreating plus FailedMountstorage CSIvolume events and CSI logs
ImagePullBackOffregistry credentials/reachabilitypod event, registry, NAT/endpoints
DiskPressure with runtime errorsnode disk/runtimedf, journalctl, containerd

On a Linux node with access, inspect journalctl -u kubelet and journalctl -u containerd along with df -h. A failed sandbox can involve container runtime errors even if the Pod happens to display the same high-level status.

Why only some nodes are affected

Mixed instance families have different ENI capacity. Nodes may occupy different Availability Zones and subnets with very different free address counts. Warm-pool allocation can make one node appear healthy longer than another. A recently upgraded CNI configuration may not have taken effect on every node, or one node may have an unhealthy daemon or stale runtime state. Compare node annotations, labels, EC2 type, CNI logs, and the subnet of each instance's primary ENI. Declare a cluster-wide fault only when the data supports it.

Is restarting aws-node safe?

A rolling restart of the aws-node DaemonSet can recover a failed CNI process, but it is not a substitute for fixing exhausted subnets or IAM errors. During the restart, new Pod networking may be temporarily unavailable on affected nodes; existing Pod network connections may continue, but plan for some disruption. Make the change within a maintenance procedure, check one node where practical, and monitor application availability and agent startup.
kubectl -n kube-system rollout restart daemonset/aws-node
kubectl -n kube-system rollout status daemonset/aws-node

If your managed add-on reconciles configuration, record how you manage it and make permanent fixes in its source of truth.

Here is the whole sequence on one real incident, so you can see how quickly you can narrow it down yourself.

Worked example: production checkout Pods cannot start

Imagine a fictional EKS application in two Availability Zones. The checkout Deployment requests 12 more replicas during peak traffic. Six new Pods stick in ContainerCreating. The errors repeatedly say failed to assign an IP address to container. Investigation finds that the nodes in zone A share a small, crowded subnet, whereas zone B has room.

Step 1: The operator captures kubectl describe pod events and maps every affected Pod to its node. Step 2: describe-subnets shows only a handful of addresses left in the affected zone; the healthy zone has many more. Step 3: aws-node logs show that ipamd cannot acquire more addresses. Step 4: The team temporarily slows rollout and removes abandoned test resources only after confirming ownership and safety. That relieves immediate pressure but does not solve the capacity design.

Step 5: For the durable repair, the team creates a fresh adequately sized subnet in the affected AZ and validates contiguous prefix capacity. It enables supported IPv4 prefix delegation in the declarative CNI configuration, chooses a reasonable warm-prefix buffer, and deploys a new managed node group with reviewed maxPods. Step 6: After health checks, the team cordons and drains old nodes one at a time using disruption budgets, leaving critical applications available. Step 7: New checkout Pods receive IPs and pass readiness checks. The team records baseline subnet and CNI metrics to prevent recurrence.

The outcome depends on application topology. Prefix mode alone would not fix the old subnet if fragmentation prevented a /28 allocation; the fresh subnet and controlled node migration matter as much as the CNI setting.

Before you send real traffic back, prove your fix with one small Pod you can throw away.

Validate recovery with a small test Pod

kubectl run cni-test --image=public.ecr.aws/docker/library/busybox:stable \
  --restart=Never -- sleep 900
kubectl get pod cni-test -o wide
kubectl describe pod cni-test
kubectl exec cni-test -- nslookup kubernetes.default.svc.cluster.local
kubectl delete pod cni-test

Success means the Pod has a VPC address, becomes Ready or Running as expected, and can resolve cluster DNS. If the registry itself is unreachable, use an already-cached approved image or diagnose image delivery separately; an image pull failure tells you nothing about CNI allocation.

CloudWatch and operational monitoring

Track subnet free IPs, Pod scheduling and sandbox failures, per-node Pod density, node readiness, and CNI ipamd allocation errors. Consider exporting CNI Prometheus metrics through your existing monitoring system. Set alert thresholds before the last free addresses vanish: autoscaling itself consumes addresses, and rolling deployments can temporarily double Pod counts. Check new node group subnet selection whenever you change the number of replicas or Availability Zones.

Prevent recurrence in infrastructure as code

Keep subnets, node groups, CNI add-on versions, IAM roles, ENIConfig resources, maxPods configuration, and warm-pool environment variables under change control. Document the maximum expected Pod count during rolling updates, HPA spikes, and blue/green deployments. Include address headroom per Availability Zone rather than relying on a VPC-wide average. Review overlapping CIDRs, subnet fragmentation, and the tradeoffs between prefix mode, secondary IP mode, enhanced subnet discovery, custom networking, and IPv6.

Safe production incident checklist

  1. Copy the exact Pod event and identify the node and subnet.
  2. Record current subnet free IP counts and node ENI usage.
  3. Read the VPC CNI managed add-on status and aws-node logs.
  4. Check the CNI identity and network access to the EC2 API.
  5. If Pod security groups are enabled, verify trunk and branch ENI readiness.
  6. Check Windows versus Linux-specific configuration.
  7. Separate image pulling, volumes, kubelet health, and disk pressure.
  8. Apply the smallest safe fix, then test one workload and all Availability Zones.
  9. Make the fix declarative and monitor the next rollout.

Jake and Ethan: the fast questions that prevent a wrong fix

Jake: "The Pod is ContainerCreating. Should I increase its memory?"

Ethan: "First read the sandbox event. A missing IP will not be fixed by container memory."

Jake: "The subnet still has free IPs. How can assignment fail?"

Ethan: "You may have hit the ENI limit, maxPods, or a contiguous /28 requirement."

Jake: "Will restarting aws-node restore every stuck Pod?"

Ethan: "Only if the CNI process was the issue. Restarting cannot create subnet capacity."

Jake: "Why does the other Availability Zone work?"

Ethan: "It may use a different subnet with more free addresses."

Jake: "Can we switch on prefix delegation now?"

Ethan: "Check CNI compatibility, prefix fragmentation, node maxPods, and how the add-on is managed."

Jake: "When do we call it recovered?"

Ethan: "When new Pods get IPs, start, pass readiness checks, and the next scale event works across zones."

EC2 API and VPC endpoint reachability: the less obvious cause

A private EKS node may be able to reach the Kubernetes API but fail when the VPC CNI must allocate or attach ENIs through the EC2 API. Distinguish a true IP shortage from a failed control-plane call by searching the ipamd log for timeouts, DNS failures, UnauthorizedOperation, RequestLimitExceeded, or inability to resolve the EC2 endpoint. If the subnet has no NAT route, an appropriate EC2 interface endpoint with Private DNS enabled may be necessary. Confirm that endpoint security groups permit HTTPS from the nodes and that VPC DNS resolution and DNS hostnames are enabled.

This requirement is separate from outbound traffic from your application Pod. A Pod that is not yet networked cannot test its own network connectivity. Use the node, Systems Manager, or a working diagnostic Pod on the same network segment. Work through your VPC route table and network ACL as well as your security groups. A successful curl to an unrelated public website does not demonstrate EC2 API authorization or the correctness of the CNI's credential chain.

After repairing API reachability, inspect how quickly ipamd replenishes its warm pool. If the same API errors recur at peak scale, review rate limits and API call volumes before blindly increasing the number of warm interfaces.

Read ENI attachment and prefix inventory directly

The most effective diagnostic compares what Kubernetes thinks the node can run with what EC2 has attached. Get the node's EC2 instance ID, then list its ENIs, subnet IDs, private IP addresses, and attached prefixes. Compare the network interface count to the maximum for that instance type and the available Pod addresses to the kubelet maxPods setting. Also look for old ENIs owned by other services or components that are still attached and consuming capacity.
aws ec2 describe-instances --instance-ids i-EXAMPLE   --query 'Reservations[].Instances[].NetworkInterfaces[].{ENI:NetworkInterfaceId,Subnet:SubnetId,IPs:PrivateIpAddresses[].PrivateIpAddress,Prefixes:Ipv4Prefixes}'   --output json

Leave an ENI attached until you know what owns it, even if its description is unfamiliar. An interface you find might belong to a load balancer, security groups for Pods, a service-managed resource, or a live instance component. A mistaken detach can interrupt workloads and create a more serious outage. Identify resource ownership from EC2 attachments and tags first.

Address allocation failures sometimes disappear after a node is replaced because that action clears an unusual host-level state. Treat such recovery as a clue, not as proof that your VPC CIDR plan was healthy. Check whether the new node simply happened to receive an address in a less crowded subnet.

Choose safe IPAM warm-pool settings

The VPC CNI keeps a reserve of addresses or interfaces so that new Pods can start without waiting for every EC2 API operation. In secondary-IP mode, WARM_ENI_TARGET, WARM_IP_TARGET, and MINIMUM_IP_TARGET affect that reserve. Prefix mode adds WARM_PREFIX_TARGET. These settings matter to both reliability and address efficiency: too much reserve strands scarce IPv4 addresses on idle nodes; too little reserve may cause slower scale-out and many simultaneous EC2 API calls.

There is no universally correct warm-pool setting. For development workloads with predictable scale, a small reserve may be enough. For a high-traffic API that rapidly adds Pods, a larger reserve might reduce startup latency if subnets have adequate capacity. Model a rolling deployment as well as steady state; at peak, old and new Pods may coexist for several minutes. Calculate across node groups and Availability Zones rather than one average node.

Changes to the daemon environment are also configuration changes. Record the previous values and verify their effect in the managed add-on description and DaemonSet environment. Where an add-on update requires a rollout, budget for a controlled window. If you make an emergency kubectl set env patch, copy it into your Terraform or Helm values too, or the next apply will silently reverse it.

What to do when every subnet in the Availability Zone is crowded

When there is no usable Pod subnet in an Availability Zone, the immediate response is to stabilize the deployment and stop competing nonessential scale events. Delete unused resources only after verifying that they are not still needed, and drain nodes that host production workloads rather than force-terminating them. Then choose a durable option: add subnet capacity in the same VPC and AZ, add a secondary VPC IPv4 CIDR and use alternate Pod subnets, or redesign address allocation through prefix mode or IPv6 if the cluster and workloads support it.

Be careful about moving nodes across Availability Zones merely to escape one full subnet. If your application depends on zonal persistent storage or load-balancer target locality, crossing zones may introduce failures or extra costs for you. Use node affinity, Pod topology spread constraints, and disruption budgets deliberately. Confirm your new subnets have the routes, network ACLs, security-group allowances, and service endpoints the workloads need.

When deciding whether to create a new node group, calculate the temporary overlap capacity needed during migration. A safe rollout commonly requires spare nodes and Pod IPs for both old and replacement workloads. If you cannot obtain that overlap, plan a controlled maintenance change rather than claiming it will be zero-downtime.

Roll back a prefix or custom networking change safely

A networking change can succeed at the DaemonSet level but break application traffic or Pod placement. Before enabling prefix delegation or custom networking, capture the previous add-on version, environment variables, ENIConfig resources, subnet IDs, maxPods settings, and node-group configuration. Roll back the declarative change first, and only then cycle workloads and nodes as required by the CNI's supported procedure.

Before you switch IP assignment modes on a large live fleet, map the addresses already attached to existing ENIs. Some changes apply to new Pod allocations or newly launched nodes rather than retroactively converting every existing Pod. A cautious strategy is to launch a small replacement node group using the desired mode, schedule a canary workload there, validate DNS and service-to-service traffic, then migrate deployments in batches. Watch the rate of sandbox errors, Pod restart counts, DNS lookups, and target-group health during every batch.

If the change fails, cordon affected new nodes, restore the previous known-good configuration, and move workloads back only when your prior subnets have room. Force-deleting production Pods belongs at the end of the list; respect PodDisruptionBudgets and stateful workload constraints first.

Fargate versus EC2: keep the subnet investigations separate

This article mainly describes EC2 worker nodes where the aws-node DaemonSet, host ENIs, and kubelet configurations are directly visible. EKS Fargate allocates network resources through a different managed execution path. Fargate Pods must match a Fargate profile and use the subnets selected by that profile. An EC2 node group and its aws-node logs cannot explain a Fargate-only Pod's attachment failure.

When a Pod runs on Fargate, confirm the matching namespace/label selectors, profile subnet IDs, available addresses, and the profile's IAM execution role. Inspect the Pod's events and Fargate-supported logging to learn whether networking, scheduling, or image pulls failed. For EC2-hosted Pods, the node-level VPC CNI runbook remains appropriate. Mixed clusters require identifying the compute type before recommending a restart or an ENI limit change.

Keep a clear boundary between symptoms and root causes

A Pod event is an observation, not a full diagnosis. failed to assign an IP address can be caused by an exhausted subnet, instance-level ENI capacity, a failed prefix allocation, invalid custom subnet selection, EC2 API permission errors, or local ipamd health. Similarly, NetworkPluginNotReady can point to a missing CNI binary, a daemon process that is not healthy, or kubelet startup sequencing. The order of checks prevents a common incident-response mistake: treating every sandbox message as a reason to update the add-on.

Use a working hypothesis and a falsifiable test. For example: hypothesis, the node subnet is exhausted. Evidence, AvailableIpAddressCount is near zero and ipamd reports insufficient free addresses. Test, schedule a small Pod onto a node in a properly configured subnet with adequate headroom. If that Pod immediately receives an IP, the evidence supports a subnet-specific capacity problem. If it fails with the same IAM error, continue investigating identity and EC2 API reachability instead.

For readers preparing for an AWS certification

We have been covering AWS certifications alongside our fixes, so here is a short extra for readers studying for one. If you only came for the fix, you already have it; feel free to skip this part.

Exams that test this topic: DevOps Engineer – Professional (DOP-C02) • CloudOps Engineer – Associate (SOA-C03) • Solutions Architect – Associate (SAA-C03).

Here are the exam-style questions this topic tends to raise, with the reasoning you need to answer them:

1. Pods stay in ContainerCreating with "failed to assign an IP address to container". What is the most common cause with the Amazon VPC CNI?

The subnet has run out of free IP addresses, or the node has reached its ENI and IP address limit.

2. What limits how many VPC-addressed pods an EC2 node can run?

The instance type's number of network interfaces and IPv4 addresses per interface, unless prefix delegation is turned on.

3. How do you get more pod IP addresses per node without bigger instances?

Turn on prefix delegation (ENABLE_PREFIX_DELEGATION=true on the aws-node DaemonSet) on Nitro instances, so each interface slot gets a /28 prefix.

4. The cluster's subnets are almost full. How can pods use a different address range?

Add a secondary CIDR block to the VPC and use VPC CNI custom networking (ENIConfig) so pod addresses come from new subnets.

5. Where do you find VPC CNI errors on a node?

In /var/log/aws-routed-eni/ipamd.log on the node and in the aws-node pod logs.

6. Which AWS managed policy does the VPC CNI need?

AmazonEKS_CNI_Policy, ideally on the role used by the aws-node service account rather than on the node role.

Exam codes and dates change often. Our AWS certification changes page keeps track of what is current.

Official references for the commands in this guide

Frequently asked questions

How do I check free IPs in a subnet?

Run aws ec2 describe-subnets and read AvailableIpAddressCount for the exact node subnet. Free IP count is a starting indicator, not proof that a contiguous /28 prefix is available.

How does prefix delegation increase the Pod limit?

It assigns a /28 IPv4 prefix to an eligible ENI slot rather than one secondary IPv4 address, increasing allocatable Pod addresses subject to instance, subnet, and kubelet limits.

Is restarting the aws-node Pod safe?

A controlled rollout restart is a valid response to a failed CNI daemon, but it can briefly disrupt new Pod networking. It does not fix subnet exhaustion.

Why do only some EKS nodes fail to create Pod sandboxes?

Affected nodes may have different subnets, Availability Zones, instance ENI limits, maxPods values, or CNI health.

How can I tell whether the problem is CNI or kubelet?

CNI failures show failed network add operations and IPAM errors; kubelet or runtime problems appear in node conditions, kubelet journals, and container runtime logs.

What does FailedCreatePodSandBox mean?

The container runtime could not complete the Pod sandbox setup. Read the detailed event to find whether networking, runtime, or another resource caused it.

Does a Pod need an IP address before its container starts?

For a normal VPC-networked Pod, network allocation is part of sandbox setup, before application containers are started.

Can an EKS subnet have free IPs but fail prefix delegation?

Yes. IPv4 /28 prefix assignment requires a contiguous block; fragmented free addresses may be insufficient.

Will adding more worker nodes fix IP exhaustion?

Only if those nodes have access to subnets with enough address capacity. Nodes placed into the same exhausted subnet can worsen the problem.

Does VPC CNI need IAM permissions?

Yes. The CNI identity requires permissions to describe and manage ENIs, IPs, and prefixes as appropriate for the configuration.

What does NetworkPluginNotReady mean?

Kubelet or the runtime could not use a ready CNI implementation. Check aws-node readiness, node logs, CNI installation, and host paths.

Do security groups for Pods require a trunk ENI?

On supported EC2 configurations, security groups for Pods use a trunk/branch ENI architecture and require compatible instance and controller setup.

Can custom networking use a second CIDR?

Yes. EKS VPC CNI custom networking can allocate Pod addresses from secondary VPC CIDR subnets through ENIConfig resources.

Is Windows networking identical to Linux networking on EKS?

No. Windows uses different host networking behavior, Pod IP management, and configuration and feature constraints.

Why does my Pod show ContainerCreating when its image cannot be pulled?

ContainerCreating is a broad lifecycle state. Check events for FailedPull or ImagePullBackOff and investigate registry reachability rather than assuming a CNI fault.

How do I confirm the fix really worked?

Create or scale test Pods on the affected nodes and Availability Zones, confirm VPC IP assignment, readiness, DNS, and stable application traffic.

Final takeaway

When an EKS Pod fails during sandbox creation, fix the exact failed step rather than guessing from ContainerCreating alone. Most reliable recoveries begin with the Pod event, node placement, subnet free addresses, and CNI logs. Prefix delegation, new subnets, custom networking, and supported Pod security-group configuration can solve capacity and allocation failures, but each has prerequisites. Preserve application availability with controlled rollout and verify the next scale event—not just one restarted Pod.

Revision note. Written October 24, 2026; updated November 23, 2026 with exam-style practice questions. "Many hands make light work," but every pod needs its own IP; count the addresses before you scale.

Related