Amazon EKS Now Supports EFA and Placement Groups on EKS Auto Mode and Karpenter
You can now configure EFA network interfaces and EC2 placement groups directly from your EKS Auto Mode or Karpenter node pool definitions. This article covers how it works under the hood, how to set it up, and the operational pitfalls to watch for when running distributed training or highly available GPU workloads on EKS.
Introduction
On July 22, 2026, AWS announced support for Elastic Fabric Adapter (EFA) and Amazon EC2 placement groups on Amazon EKS Auto Mode and Karpenter. The headline feature is that you can now control network interface configuration and the physical placement of instances directly from your node pool configuration.
If you run GPU clusters on EKS, you may have run into manual workarounds to use EFA, or hit IP address exhaustion in your VPC. This update addresses those pain points directly.
This article covers what changed, which organizations benefit most from this update, and how the underlying architecture works and how to enable it. It's aimed at infrastructure and platform engineers running distributed training or inference on EKS, as well as anyone evaluating a GPU cluster build-out.
What Changed
Previously, when configuring node pools on EKS Auto Mode or Karpenter, you couldn't specify detailed EFA network interface settings or an EC2 placement group directly from the node pool manifest. Even for workloads like distributed training and large-scale inference — where the physical placement of GPU instances and inter-node communication performance can make or break a job — optimizing this required additional operational workarounds.
Item | Before | With this update |
|---|---|---|
EFA network interface configuration | Required separate configuration outside the node pool | Can specify EFA-only or standard ENI directly from the NodeClass / NodePool |
EC2 placement group | Couldn't be specified from node pool configuration | Can specify the cluster, spread, or partition strategy directly |
Capacity type | — | Supports both dynamic and static capacity |
The Problem Before This Update
When building large GPU clusters, distributed training generates heavy data traffic across hundreds or thousands of instances. Controls like cluster placement groups, which keep instances physically close together, are directly tied to latency and bandwidth — but until now, this had to be configured separately on the EC2 side, outside your EKS node pool definitions.
In addition, EFA network interfaces consumed IP addresses just like standard ENIs. At a scale of hundreds of nodes, this could exhaust the available IP addresses in a VPC and become a bottleneck in CIDR design.
How EFA and Placement Group Support Solves This
With this update, you can now configure EFA network interfaces as either EFA-only or standard ENI directly from your EKS Auto Mode or Karpenter node pool configuration. EFA-only interfaces don't consume IP addresses, so you get full interconnect bandwidth while keeping IP utilization in your VPC under control.
You can also specify the cluster, spread, or partition placement group strategy directly from your node pool definition, letting you complete your instance placement strategy at the Kubernetes manifest level. Both capabilities are supported on dynamic and static capacity node pools alike.
This feature is available in all AWS Regions where Amazon EKS is available.
Who Should Use This Feature
EFA and placement group support isn't a universal win for every EKS user — it's most valuable for organizations with specific workload characteristics. Before adopting it, it's worth checking whether your workloads actually fit the profile.
This feature pays off for organizations running distributed training on hundreds or thousands of GPU instances for LLMs or image recognition models, organizations running production inference services with strict availability SLAs, and organizations that need to run multiple tenants or models on a single cluster. If you're bottlenecked on GPU-to-GPU communication, or running into IP address exhaustion in your VPC, you'll likely see the benefit quickly. On the other hand, if your workloads are CPU-centric, your GPU clusters are small, or you're working in a single-node test environment, adopting this feature probably isn't worth the added complexity.
That said, the right combination of EFA-only and placement groups depends on your workload's communication pattern and availability requirements.
Architecture Deep Dive
Let's take a closer look at what EFA and placement group support actually changes under the hood.
How EFA-Only Interfaces Work
In an EKS Auto Mode NodeClass or a Karpenter EC2NodeClass, the
networkInterfaces field lets you statically define your network interface configuration at instance launch time. Each interface is defined by a networkCardIndex (the network card number, where 0 is the primary), a deviceIndex (the device position on that card), and an interfaceType ( interface or efa-only ). The primary ENI ( networkCardIndex: 0 , deviceIndex: 0 ) must always be interfaceType: interface , since it handles standard IP-based traffic.efa-only interfaces, by contrast, are never assigned an IP address — they function purely as EFA devices dedicated to RDMA traffic. Because they use OS-bypass to let applications access the network interface directly without going through the CPU, parallel communication libraries like MPI and NCCL can achieve low-latency, high-bandwidth communication. Since they don't consume IP addresses, you can attach multiple EFA interfaces to a GPU instance without putting pressure on your VPC's IP address budget.Note that once you explicitly configure
networkInterfaces , EKS Auto Mode and Karpenter won't attach additional IPs, prefixes, or ENIs after the instance launches. The number of IP addresses configured at launch time becomes the ceiling for how many Pods that node can run, so you'll want to plan your expected Pod density and size secondaryIPv4Count or secondaryIPv4PrefixCount on the primary ENI accordingly.
Only the primary ENI belongs to the VPC's IP address space — the remaining
efa-only interfaces carry GPU-to-GPU RDMA traffic without holding an IP at all.Choosing Among the Three Placement Group Strategies
A cluster placement group packs instances onto physically nearby racks within a single AZ, delivering low-latency, high-throughput networking. Once the first instance launches, the placement group is pinned to that AZ — so if your NodePool allows multiple AZs and you scale out several instances in parallel, whichever instance launches first locks in the AZ, and the rest may fail with capacity errors. Pinning the AZ in your NodePool requirements avoids this kind of transient failure.
A spread placement group distributes instances across distinct physical hardware, minimizing the blast radius of a single hardware failure. It comes with a hard limit of 7 instances per AZ per group — if you hit that limit and a drift replacement needs to swap out a node, the new node's launch can fail, leaving the old, drifted node running.
A partition placement group distributes instances across multiple independent partitions (up to 7 per AZ), isolating failures at the partition level. It's designed for large-scale distributed systems like Hadoop or Cassandra, and pairs well with a Pod topology spread constraint using the
karpenter.k8s.aws/placement-group-partition label to spread workloads across partitions. Unlike cluster and spread, partition placement groups have no additional constraints beyond standard EC2 limits.
From left to right: cluster (instances packed close together in a single AZ), spread (instances spread across distinct physical hosts), and partition (instances distributed across independent partitions).
Choosing the Right Configuration
Because the EFA interface type and the placement group strategy are independent settings, you'll want to choose the right combination based on your workload's characteristics.
Workload characteristics | Recommended interface | Recommended placement group |
|---|---|---|
Distributed training bottlenecked on GPU-to-GPU communication | EFA-only | cluster |
Production inference service prioritizing availability | Standard ENI | spread |
Large-scale distributed systems like Hadoop or Cassandra | Standard ENI (EFA-only optional, depending on the workload) | partition |
Each NodeClass or EC2NodeClass maps to exactly one placement group. If you need to mix strategies, you'll need a separate NodeClass and NodePool per workload. Also keep in mind that a node with multiple EFA interfaces can't have
associatePublicIPAddress enabled — so it's safest to split EFA workloads into their own NodeClass and NodePool, separate from your regular workloads.
Operational Pitfalls With Karpenter
The placement group constraints covered in the previous section are straightforward on their own, but combined with Karpenter's dynamic node replacement, they can produce unexpected bottlenecks. Here are a few pitfalls worth knowing about before you run this in production.
Drift Replacement Can Get Stuck
When a node drifts, Karpenter replaces it using a replace-then-delete approach — launching a new node before terminating the old one. If a spread placement group is already at its per-AZ limit of 7 instances, the replacement launch fails, and the drifted node stays running until a slot frees up. If every AZ in the placement group is at capacity, drifted and consolidation-candidate nodes can stay running indefinitely. Karpenter won't fall back to launching a replacement outside the placement group, either.
Setting
consolidationPolicy: WhenEmpty helps avoid this. Under this policy, a node is only deleted after all non-DaemonSet Pods have drained off, which frees up a placement group slot without needing to launch a replacement node first. That said, drift itself always uses the replace-then-delete approach regardless of your consolidation policy — so drift replacement stays blocked as long as the placement group is at capacity.Consolidation Can Move Pods Outside the Placement Group
If a Pod has no placement-group scheduling constraint — such as a
nodeSelector on eks.amazonaws.com/placement-group-id — consolidation can move it to a node outside the placement group. For Pods where placement group membership matters for performance, like EFA-backed distributed training jobs, you'll need to set this constraint explicitly.Deleting a Placement Group Blocks New Node Launches
If the placement group referenced by a NodeClass no longer exists, no new instances can launch. The placement group ID format is validated at admission time, but its existence is only checked at launch. If you accidentally delete a placement group that's still in use, the existing nodes get marked as drifted and keep running — because, as covered above, drift replacement itself is blocked when the placement group has no capacity.
None of these issues stem from static misconfiguration on their own — they only surface when Karpenter's dynamic scaling and replacement logic interacts with placement group capacity constraints.
Getting Started
With the concepts above in mind, let's walk through actual configuration. We'll cover two patterns: distributed training (EKS Auto Mode, cluster placement group, EFA-only) and a highly available production service (Karpenter, spread placement group).
Note that if you're using self-managed Karpenter and configuring EFA through the
networkInterfaces field on an EC2NodeClass, you'll need Karpenter v1.11 or later. There's no such version requirement for EKS Auto Mode NodeClasses.Configuring EKS Auto Mode for Distributed Training
First, create the placement group on the EC2 side.
aws ec2 create-placement-group \ --group-name <placement-group-name> \ --strategy cluster \ --region <region-code>
Next, create a NodeClass that specifies an EFA-only interface and references the placement group you just created.
apiVersion: eks.amazonaws.com/v1kind: NodeClassmetadata: name: <nodeclass-name>spec: role: <role-name> subnetSelectorTerms: - tags: Name: "<subnet-name-tag>" securityGroupSelectorTerms: - tags: Name: "<security-group-name-tag>" placementGroupSelector: name: "<placement-group-name>" advancedNetworking: networkInterfaces: - deviceIndex: 0 interfaceType: interface networkCardIndex: 0 secondaryIPv4PrefixCount: 1 - deviceIndex: 0 interfaceType: efa-only networkCardIndex: 1
kubectl apply -f nodeclass.yaml
Finally, create a NodePool that references this NodeClass. EKS Auto Mode's NodePool reuses the Karpenter CRD as-is, so you reference the NodeClass via
nodeClassRef . Add instance-family requirements to narrow down to EFA-capable instances as needed.apiVersion: karpenter.sh/v1kind: NodePoolmetadata: name: <nodepool-name>spec: template: spec: nodeClassRef: group: eks.amazonaws.com kind: NodeClass name: <nodeclass-name>
kubectl apply -f nodepool.yaml
Configuring Karpenter for a Highly Available Production Service
Again, start by creating the placement group.
aws ec2 create-placement-group \ --group-name <placement-group-name> \ --strategy spread \ --region <region-code>
For a Karpenter EC2NodeClass, skip EFA and specify only the placement group.
apiVersion: karpenter.k8s.aws/v1kind: EC2NodeClassmetadata: name: <ec2nodeclass-name>spec: role: <role-name> subnetSelectorTerms: - tags: karpenter.sh/discovery: "<cluster-name>" securityGroupSelectorTerms: - tags: karpenter.sh/discovery: "<cluster-name>" placementGroupSelector: name: "<placement-group-name>"
As covered in the previous section, spread placement groups cap out at 7 instances per AZ, so set
consolidationPolicy: WhenEmpty on the NodePool to avoid stuck drift replacements.apiVersion: karpenter.sh/v1kind: NodePoolmetadata: name: <nodepool-name>spec: disruption: consolidationPolicy: WhenEmpty template: spec: nodeClassRef: group: karpenter.k8s.aws kind: EC2NodeClass name: <ec2nodeclass-name>
kubectl apply -f ec2nodeclass.yamlkubectl apply -f nodepool.yaml
Verifying the Configuration
Once your configuration is applied, verify that everything took effect as expected.
Check that the NodeClass or EC2NodeClass resolved correctly by looking at the
Ready condition in status.conditions .kubectl get nodeclass <nodeclass-name> -o jsonpath='{.status.conditions}'
Once instances launch, confirm from the EC2 side that they landed in the target placement group.
aws ec2 describe-instances \ --filters "Name=placement-group-name,Values=<placement-group-name>" \ --query "Reservations[].Instances[].[InstanceId,Placement.GroupName]"
To confirm the EFA-only interfaces were created as expected, check the interface types attached to the instance.
aws ec2 describe-network-interfaces \ --filters "Name=attachment.instance-id,Values=<instance-id>" "Name=interface-type,Values=efa-only" \ --query "NetworkInterfaces[].[NetworkInterfaceId,InterfaceType]"
If you're using the Pod scheduling constraint for placement group membership covered earlier, it's worth also confirming that the
eks.amazonaws.com/placement-group-id label is set correctly on the node.kubectl get node <node-name> -o jsonpath='{.metadata.labels.eks\.amazonaws\.com/placement-group-id}'
Use Cases
With the fundamentals covered, let's look at a few concrete scenarios where this feature makes a difference.
Distributed Pretraining for LLMs
For workloads that pretrain LLMs on hundreds of GPU instances, inter-GPU communication performance directly determines training throughput. Packing instances into nearby racks within a single AZ using a cluster placement group, and maximizing bandwidth for parallel communication libraries like NCCL with EFA-only interfaces, gives you a configuration that scales cleanly as you add nodes. Because EFA-only interfaces don't consume IP addresses, you can attach several interfaces per GPU without putting pressure on your VPC's IP address budget — which matters a lot at large cluster scale.
Highly Available Inference Endpoints
For online inference endpoints that need to stay up continuously, limiting the blast radius of a single failure matters more than raw bandwidth. Spreading nodes across distinct physical hosts with a spread placement group means a rack- or host-level failure doesn't take down the whole service — other nodes keep serving traffic. Dedicated interfaces like EFA-only generally aren't necessary here; a standard ENI with just the placement group configured is enough.
Multi-Tenant Inference Platforms
For inference platforms that host multiple tenants or models on a single cluster, partition placement groups are a good fit. Assigning tenants or models to separate partitions means a hardware failure in one partition doesn't spill over into the others. Setting a
topologySpreadConstraints on the Pod side, keyed on the karpenter.k8s.aws/placement-group-partition label, also helps avoid a given tenant's Pods clustering into the same partition.
Summary
EFA and placement group support on EKS Auto Mode and Karpenter lets you configure EFA network interfaces as EFA-only, giving you high-bandwidth GPU-to-GPU communication without consuming IP addresses. You can also specify cluster, spread, or partition placement groups directly from your node pool definition, letting you complete your instance placement strategy at the Kubernetes manifest level. From distributed training to highly available production services to multi-tenant platforms, this update expands your options for running GPU clusters on EKS.
That said, this feature isn't something every EKS user needs. Before adopting it, it's worth understanding that each NodeClass or EC2NodeClass maps to exactly one placement group, that nodes with EFA interfaces have restrictions on public IP assignment, and that Karpenter's drift replacement and consolidation can get stuck when combined with placement group capacity limits. We'd recommend validating the behavior in a test environment before rolling it out to production.
One more note: as of this writing (July 2026), AWS's own documentation isn't fully consistent on EKS Auto Mode's support status for this feature. This article is based on the configuration examples in the EKS Auto Mode NodeClass documentation, but we'd recommend double-checking the latest documentation for current support status before adopting this in production.
References
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article