Skip to main content

👋 Everything about EKS & AI Infrastructure Newsletter "#95" ☁️❤👨‍💻

Sandboxing AI agents on EKS from three angles, rightsizing at Salesforce scale, Karpenter v1.15, and faster inference on Trainium3 and Graviton5

Updated 20 min readMarkdown
Part of series👋 Everything about EKS & AI Infrastructure Newsletter ☁️❤👨‍💻
👋 Everything about EKS & AI Infrastructure Newsletter "#95" ☁️❤👨‍💻

Dear EKS & AI Infrastructure enthusiasts,
Welcome to Everything about EKS & AI Infrastructure #95.

This edition is about boundaries. AI agents run code nobody reviewed, so they need hard limits on what they can reach: their own VM, their own IAM role, and a network path they can’t change. Three pieces this week test those limits from different sides. One is AWS’s own guide, one is a Community Builder attacking a sandbox as root, and one is a full Terraform build that shares everything that broke. The same idea applies to resources. Pods that ask for more CPU and memory than they use cost real money, and Salesforce shows how to fix that safely across 1,400 clusters.

In this edition:

  • AWS’s guide to running AI agents on EKS, with a Nitro Sandbox, an IAM role and a locked egress path for every agent
  • Two Community Builders putting sandboxes to the test: attack code inside Lambda MicroVMs, and a Terraform build of Nitro Sandboxes on EKS Auto Mode
  • How Hugging Face ran 1,000 coding agents for nine days, and where the real bottlenecks were
  • How Salesforce right-sizes workloads across 1,400+ EKS clusters, and the guardrails that saved more than $5 million with no customer incidents
  • Karpenter v1.15, which places GPUs next to their EFA network cards and reboots some faulty GPU nodes instead of replacing them
  • Faster inference without new hardware: GPT-OSS-20B on Trainium3, and autoscaling vLLM on Graviton5 CPUs
  • PEEKS v0.5.1, GitHub Actions runners on Auto Mode, and more

Let’s get into it.

Performance Engineering in Modern AI Systems 🌩️

🌩️🌩️ Same chip, same model, faster: GPT-OSS-20B on AWS Trainium3
Stefan Krassin and Reza Rahimi, yasp

When you serve an open model on Trainium, most of the speed comes from kernels: the small programs that do the actual math on the chip. Stock setups use general kernels that aren’t tuned to a given model. yasp, an optimization partner of AWS’s Annapurna Labs, uses AI agents to rework open-weight models for AWS Trainium, covering kernels and quantization, and delivers each model ready to serve through vLLM. The weights stay the same. Only the way the model runs on the chip changes.

The process has three steps. First, the agents run the stock model, record each kernel with real inputs and outputs, and build a validated reference for each. Then they write NKI kernels for Trainium and use Trainium3’s native MX low-precision formats. A change is kept only if it improves results end to end. NKI is the Neuron Kernel Interface, AWS’s way to write custom kernels for Trainium. The result ships as a native library and runs through vLLM via the yasp-vllm plugin, so your serving layer stays the same. For GPT-OSS-20B, the page reports up to 59% more throughput and 37% lower cost per token.

The catch is that the gain depends on traffic. The stock setup was faster at 64 concurrent users. Optimized was 37% faster at 256 users and 55% faster at 1,024. If your endpoint runs at low concurrency, this may not help. The page also leaves out the setup details. It names no instance type and no baseline stack, and input/output lengths are not stated. On quality, it doesn’t name benchmarks, tolerances, or methodology. Access is by request, so benchmark it on your own traffic before you plan capacity around it.

🌩️ How to scale LLM serving with Ray Serve and vLLM on Graviton5 CPUs on Amazon EKS Auto Mode
Olawale Olaleye, AWS

Not every model needs a GPU. For small models, a fixed set of CPU pods can serve traffic well, until load spikes and requests start to queue. This sample serves Qwen3-4B-Instruct with vLLM on Graviton5 (Arm64) CPUs and puts Ray Serve in front of it, so the number of model copies follows the load. Each layer triggers the next. Ray Serve sees more than 8 in-flight requests per replica. The Ray autoscaler adds a worker pod. Then EKS Auto Mode (Karpenter) launches another Graviton5 node for that pod. In the author’s test with 24 concurrent requests, the second replica was serving about 6 minutes after load started, and all 200 requests returned 200.

Cost comes from splitting the cluster. The Ray head holds the cluster state, so it stays on On-Demand. The workers that run vLLM hold no state, so they run on Spot. In us-east-1, that was about $0.34 an hour, against about $1.65 for one On-Demand c9g.8xlarge. The sample also has a model-loading lesson that applies to any vLLM setup on EKS. Reading weights straight from a Mountpoint for S3 volume ran at about 3 MiB/s, while copying them to local disk first ran at about 600 MiB/s. That’s how the 7.6 GB model loads in about a minute.

The catch is cold start. A new replica takes several minutes to come up (node, a 7 GB image, weight copy, engine warmup), so this setup absorbs sustained load, not sudden spikes. A Spot interruption gives 2 minutes’ notice, so with one worker you’ll have a gap, and you should run two minimum replicas if that matters. Also, the Ray dashboard has no authentication and accepts job submission. Keep it behind port-forward only.

Starred Content ⭐

⭐Scaling Swarms to Thousands of Agents
Carlos Miguel Patiño, Lewis Tunstall, Ben Burtenshaw and Leandro von Werra, Hugging Face

Most agent swarm experiments so far have chased tasks with a clear score, like building a C compiler or climbing a benchmark. Hugging Face tried something harder: a large swarm of AI coding agents building PyBot, a chatbot written in pure Python with no machine learning or LLMs at runtime. They ran 1,000 DeepSeek agents, grown gradually over nine days, which produced about 175,000 messages and over 8,500 merged pull requests. What held it together wasn’t a hierarchy. A swarm can make steady progress on a subjective goal if it has a shared style guide, a rule that every change must beat main on realistic test conversations, and work split into specialized “lanes.” By the end, PyBot matched SmolLM-360M on everyday conversations, with no learned weights.

The infrastructure is the part to study. Agents ran on CPU Spot instances, which were frequently reclaimed, and Legion saved and restored workspaces to recover from this. Inference came from a vLLM server on 8-GPU nodes. A second node was added at 1,000 agents, but metrics suggested one node would have been enough. Agents spent most of their time waiting on tool calls, not on inference. The bottlenecks were elsewhere. Busy channels produced 500 to 1,000 requests per minute, and peaks reached about three times that. Before a custom Git server took over rebasing, only about 11% of merge attempts succeeded. The setup maps directly onto EKS: a CPU Spot node pool for the agent workers and a shared vLLM pool on a GPU node group. Plan GPU capacity around tool wait time, not agent count.

The catch is security and trust. During an earlier experiment, an agent scanned ports and tried to use its own token as the Git server’s admin token. Another approved a PR as a favor, despite finding a real issue. If you run agents on shared infrastructure, sandbox them and scope their credentials before you scale up. Also note that SmolTalkBench is the authors’ own eval and relies on an LLM judge, so the comparison with SmolLM-360M depends on that setup.

⭐ How Salesforce efficiently right-sizes Kubernetes workloads at scale on Amazon EKS
Lei Liu, Drumil Bakhai, Jacob Dougherty, Uttam Kumar, Srikanth Rajan (Salesforce), Vikram Venkataraman (AWS)

Last edition we covered EKS Auto Mode’s new pod rightsizing. This post shows what automatic rightsizing looks like after years in production at one of the largest EKS fleets. Salesforce runs more than 1,400 live Amazon EKS clusters, and individual clusters can reach 2,500 nodes and run about 1,000 workloads. At that scale, hand-tuned CPU and memory settings stopped working. Wrong values caused throttling and pod restarts, and engineers spent their days tuning instead of building. The team moved to the Vertical Pod Autoscaler (VPA), which sets each pod’s requests based on its actual usage.

The most reusable idea is that not every workload should be sized the same way. Each workload gets one of three strategies: VPA only (e.g., add-ons and leader-follower workloads), HPA only (stateless workloads and webhooks), or VPA plus HPA. When both run, they have to watch different signals, or they’ll fight each other. For Istio, HPA scales istiod replicas at about 500 proxy connections per pod, and VPA sets CPU and memory per pod.

The rest of the post explains how they made this safe. Every workload starts in read-only mode, so VPA only recommends. VPA changes requests but never limits, and limits are set to at least 4x the highest usage seen in scale tests. Changes roll out gradually, with time to observe and a switch to roll back. The result was more than $5 million in cumulative infrastructure savings, with no customer-impacting incidents across dev, staging, and production.

What to do: copy the guardrails, not just the tool. VPA is for steady-state optimization, not sudden spikes, so leave spikes to the HPA. Always set a maximum, because without maxAllowed, VPA can recommend more than any node holds, leaving pods Pending. If you’re on Auto Mode, its rightsizing preview conflicts with any active VPA, so pick one per workload.

⭐ AI agents on Amazon EKS
Amazon EKS team, AWS

A normal Kubernetes app does what its code says. An agent doesn’t. An agent decides its next step at runtime, so its behavior can’t be predicted the way a conventional Kubernetes application’s can. Model-written code can reach the network or read credentials. The guide’s answer is least privilege for each agent: each agent runs in its own Nitro Sandbox with its own IAM role and an egress boundary it can’t change.

On EKS, that comes down to three settings on every agent. A pod opts into a sandbox with runtimeClassName: isolated-sandbox, which gives it its own lightweight VM with its own guest kernel. Code that escapes the container can’t reach the node or other agents. Agent namespaces reject pods that don’t specify a sandbox runtime class. Each agent gets its own IAM role through EKS Pod Identity, so a single agent can be revoked without affecting others. Network policy, enforced by EKS Auto Mode, allows egress only to DNS and approved destinations. All three are created from one reviewable Agent resource, composed by kro and ACK EKS Capabilities and delivered by Argo CD. On top of that base, you choose each layer separately: open source (AgentGateway, Valkey, Langfuse) or AWS managed services (AgentCore Gateway, ElastiCache Serverless for Valkey, CloudWatch). You can mix components from both columns in your own platform.

The catch: the Amazon EKS service team doesn’t support the Terraform and GitOps templates or most of the open source components. They are sample code, not production-ready. The guide is also clear about where the boundaries stop. Network policy controls where a pod can connect, not which workload is calling. A service mesh adds caller identity, but it doesn’t capture traffic from Nitro Sandbox pods. And the guide assumes agents call a model that isn’t hosted on EKS.

  1. Announcements 📢

📢 Karpenter v1.15: GPU-aware provisioning, smarter node repair, and more
Sajjan Gundapuneedi, Dharam Shah, Jason Deal, Trishi Mehta, AWS

If you run GPU workloads on EKS, the node Karpenter picks matters as much as how many GPUs it has. In multi-node training and large inference, each GPU sends data to other nodes through an EFA network card. When the GPU and the card sit far apart inside the server, that traffic slows down. Until now, Karpenter couldn’t see this. In v1.15, Karpenter considers device availability and topology when sizing new nodes, so it can place GPUs and EFA adapters that share a PCIe root complex. It does this through DRA (Dynamic Resource Allocation), the newer Kubernetes way to request devices, and DRA requires EKS 1.34+.

The second change is about what happens when a GPU node goes bad. Previously, repair replaced the node outright, which on a busy cluster could take down running jobs and lose a GPU instance that’s hard to get back. Now repair honors NodePool disruption budgets, respects Pod Disruption Budgets during drain, and applies a per-condition termination grace period. For some GPU faults, it doesn’t need a new instance at all: the EKS Node Monitoring Agent flags some GPU XID errors as reboot-clearable, which triggers an in-place reboot. You keep the same instance, which matters most when you’re using reserved GPU capacity.

What to do: if you’re on EKS 1.34 or later with GPU and EFA node pools, DRA is the feature to test first. Treat reboot repair as experimental for now. Reboot repair and the terminate-first gates are alpha, and reboot repair requires NodeRepair and ec2:RebootInstances on the controller role. Metric labels also changed in this release, so check your dashboards and alerts against the upgrade guide before you upgrade. The post doesn’t say when these features reach EKS Auto Mode.

📢 Amazon EKS Auto Mode now rightsizes Pods to reduce compute costs (Preview)
Amazon EKS team, AWS

When you deploy a workload on Kubernetes, you set CPU and memory requests: the amount each Pod reserves on a node. Most teams set these once and never revisit them, usually with a safety margin on top. EKS Auto Mode then launches EC2 instances to fit those requests. If a Pod asks for 2 vCPUs and uses 0.5, you still pay for the capacity to hold all 2. Across hundreds of Pods, that gap turns into extra instances on your bill.

Resource optimization closes the gap. Auto Mode watches what each container actually uses and adjusts its requests to match, so the same Deployments and StatefulSets fit on fewer or smaller instances. You don’t tune anything by hand, and there is no extra charge. AWS ran it on the clusters behind EKS itself first. CPU requests dropped by nearly 30% and memory requests by 25%, freeing tens of thousands of vCPUs and over 130 TB of memory.

To turn it on, you create a ClusterResourceOptimizationPolicy, a regular Kubernetes manifest you can manage with kubectl or GitOps. You need an Auto Mode cluster running Kubernetes 1.36 or later. For the first 12 hours or so it only collects usage data. After that it shows recommendations without changing anything. When you switch to Apply mode, it resizes running Pods in place, a few at a time, without restarting them. Your Deployment and StatefulSet manifests are never edited. The new values live only on the Pods.

There are limits. It only manages Deployments and StatefulSets, not Jobs, CronJobs or DaemonSets. If an HPA already scales a workload on CPU or memory utilization, it leaves that resource alone. So check how your autoscaling is set up first, and read the recommendations before you switch on Apply.

Community & Career 🤝

🤝Platform Engineering on EKS (PEEKS) v0.5.1
PEEKS contributors, AWS App Modernization Blueprints

Building an internal developer platform on EKS usually means wiring together many tools before a single app team can use it. PEEKS is a hands-on workshop that does that wiring for you. You build an Internal Developer Platform (IDP) on Amazon EKS using cloud-native tools including Argo CD, AWS Controllers for Kubernetes (ACK), kro, and Kargo. Everything is GitOps: kro and ACK create AWS resources from Kubernetes manifests, and Argo CD delivers them.

Version 0.5.1 cuts the time to a ready environment from 1 h 47 to about 1 h 12, a 32% drop on the median. It also adds Open Agentic Platform v0.1.0, which runs agents on the same clusters and the same GitOps flow: deploy an agent, add an MCP server, promote it, observe it. The hub cluster now takes over from the temporary kind bootstrap cluster, which is then deleted. Privileged install steps moved out of the developer IDE into CodeBuild under their own role. In the team’s end-to-end test from the published build, all 138 of 138 Argo CD applications came up healthy in 66 minutes.

The catch: the speed-up comes from only 5 test environments on v0.5.1, against 150 on v0.3.4, so the team calls it indicative. You can attend CON401 at re:Invent (Tue 1 Dec and Thu 3 Dec) or run it in your own account.

🤝 Lambda MicroVM Sandbox Test: Credentials, Fork Bombs, and Snapshot State
Lewis Sawe, AWS Community Builder

Lambda MicroVMs give each user or session its own small virtual machine, built for jobs like running code an AI agent wrote. Most posts about them stop at hello world. Lewis took a different approach. He ran attack code as root inside seven MicroVMs to see what the sandbox actually stops, all for under $2.

Some things held up well. One MicroVM couldn’t reach another over the network, even with full root powers. When he ran a fork bomb (a program that copies itself until the machine chokes), the whole VM was killed, but the MicroVM next to it didn’t slow down at all. A program that used too much memory was stopped at the documented 8 GB limit, and the VM kept running. Other findings had sharp edges. Any root process inside the VM can read the attached IAM role’s credentials from the metadata address, so AI-written code gets exactly the access that role has. Values created once at startup, like a UUID or a token, were baked into the snapshot, so four of five separate MicroVMs returned the same ones. And leaving out the egress flag didn’t block internet access: the VM reached the internet anyway.

The catch, and the lesson for EKS too: the VM keeps code from touching its neighbours, but it doesn’t limit what that code can do with the permissions you give it. On EKS, that’s the IAM role you attach through Pod Identity and your network policy. Give agent code the smallest role possible, and test from inside the sandbox that outbound traffic is really blocked. Don’t assume it is from the settings you passed.

🤝 Building AWS Nitro Sandboxes with Terraform: Hardware-Isolated Containers on Amazon EKS Auto Mode
Abdulsomad Abdulwahab, AWS Community Builder

Turning on a Nitro Sandbox takes one line in a pod spec, runtimeClassName: isolated-sandbox, and the pod then runs in its own small VM. Everything around that line is the real work: giving each app its own IAM role, locking down its network, and making it easy for the next team to add an app. Abdulsomad built all of this in Terraform, on EKS Auto Mode with Kubernetes 1.36, and shared the repo. The platform is deployed once. After that, each app is a single YAML file that creates its own IAM role, Pod Identity link, service account and network policy. Adding an app never touches the cluster or the VPC.

He explains both sandbox types clearly. An isolated sandbox protects the node and other pods from your workload, which makes it the right fit for AI agents and generated code. A confidential sandbox also protects your workload from the node and its operators. For example, kubectl exec is blocked, and an encrypted container image can only be unlocked by KMS inside a VM that proves it’s running the approved setup. The most useful lesson is about that KMS key. His first key policy looked secure but wasn’t, because any IAM policy that allowed decrypt could get around it. He fixed it with explicit Deny rules. He also found that a pod’s first start sometimes got no AWS credentials, because Pod Identity wasn’t ready yet. A single restart fixed it.

The catch: confidential mode is strict. Any change to the image, env vars, ports or user/group changes the measurement KMS checks, so you have to regenerate the policy on every change. It also doesn’t protect your logs, credentials or network traffic by itself, so those still need their own controls. The idle dev cluster cost about $5 a day, mostly the EKS fee, the nodes and a NAT Gateway, so tear it down when you’re done.

Highlights ✨

✨ Running GitHub Actions runners with Amazon EKS Auto Mode
Vardy Ng, Mridul Chopra, AWS

Many platform teams end up running their own CI runners, either to reach private resources or to stop paying per minute. The usual setup is a group of VMs that stays on all day, mostly idle. This post shows how to run GitHub Actions runners as pods on EKS Auto Mode instead, so you only pay for compute while jobs are running. It uses GitHub’s Actions Runner Controller (ARC). When a job is queued, ARC creates a runner pod. EKS Auto Mode sees the unscheduled pods and launches right-sized EC2 instances from a NodePool, choosing Spot or On-Demand and amd64 or arm64. When the job finishes, the pod is deleted and Auto Mode removes the empty node.

The useful part is how jobs are matched to capacity. The post creates three runner groups (x86 Spot, Graviton Spot, and On-Demand), and each workflow step chooses one with runs-on. The sample workflow tests on x86 Spot, builds on On-Demand, and deploys on Graviton Spot. Cheap, interruptible capacity handles work that can simply be re-run, and reliable capacity handles the rest.

Two things to know before you copy it. First, idle cost isn’t zero: the controller and listeners always run, so at least one node is always on, and the Auto Mode management fee applies per instance and isn’t reduced by Spot or Savings Plans discounts. Second, Spot reclamation can interrupt jobs, and neither GitHub Actions nor ARC retries them automatically. Keep release and deploy jobs on On-Demand. The post also doesn’t cover building container images inside runners, so you’ll need to solve that part separately.

🎉 Sponsor Section

At the moment, we don’t have a sponsor for this edition, but we look forward to working with companies and organizations that support the EKS & AI Infrastructure community in future editions. If you or your company is interested in sponsoring, please contact us at 📧 thecloudtechforall@gmail.com

📝 **Words from the Author
**Every year I read Werner Vogels’ tech predictions, and this year two of them stuck with me. His theme is that robotics, space, biotech, and of course AI, are converging to power a golden era of innovation. But he pairs that optimism with a reality check: the same tools can be used by bad actors.

The first prediction that stuck is that AI agents will attack software before it ships and keep testing it for as long as it runs. I keep coming back to the same idea in my own work on agent sandboxing. If agents are going to probe our systems all the time, including the ones on our side, the boundaries around them have to be designed in from day one. That’s why this edition has so much on sandboxes. The second is that builders will design for sovereignty the way they design for security and cost. I hear this in almost every customer conversation in the UAE and India now. Where the data lives and who holds the keys comes up before the price does.

The rest of his list looks further out, from computers built on living neurons to brain interfaces that need no surgery. It’s worth reading in full. It’s a good reminder that the infrastructure we’re building today is what those ideas will run on.

This week I’m at re:Invent in Las Vegas, talking about exactly this: a Code Talk on sandboxing AI agents on EKS, and COM206, a community discussion on how teams are doing it today. If you’re there, come say hello. If you’re not, the next edition will bring you the launches that matter for EKS and AI infra, without the noise.

Thank you for reading, sharing and replying. It keeps this newsletter going.

Adit

About the author

  • I’m a Solution Architect at Lauren, AWS UG Vadodara Co-Organizer and HashiCorp Ambassador

No comments yet. Be the first to comment.