r/aws • • 15d ago

article AWS Nitro Sandboxes: Hardware-enforced workload isolation on Amazon EKS

Run agentic AI, multi-tenant SaaS, and regulated workloads with the isolation of a dedicated EC2 instance and the simplicity of a Kubernetes pod. Nitro Sandboxes give each pod a hardware-enforced security boundary, built on the same Nitro System that isolated EC2 instances from each other

Checkout my blog https://aws.amazon.com/blogs/containers/aws-nitro-sandboxes-hardware-enforced-workload-isolation-on-amazon-eks/?trk=0fc6058e-ef5a-4fc9-bc07-6efe2c3c9de4&sc_channel=el

29 Upvotes

23 comments sorted by

11

u/CubsFan1060 14d ago

This is a cool feature, but note that right now you have to build your own AMI for it if you aren't using the (very expensive) auto mode.

This landed but I still think you need to build your own: https://github.com/awslabs/amazon-eks-ami/pull/2884

On Bottlerocket, it's supported in Auto mode but so far unsupported in the stock AMI.

3

u/OutsidePerception911 14d ago

Why wouldn’t you run a customized version of vllm instead of a provided one at this level?

And as much as it seems controversial auto mode works with the right directions/guardrails?

2

u/csantanapr 12d ago

The feature doesn't have anything to do with vllm

3

u/CubsFan1060 14d ago

Auto mode is fine. Until you look at the price.

Also, keep in mind that security boundaries like this are more useful than just vllm.

1

u/csantanapr 12d ago

Custom AMI supporter easy to build one many tools available including AWS Image Builder

1

u/Fuzzy-Charge-2236 13d ago

wait did they say when that PR is actually making it into the default release?

4

u/WorthRow3022 15d ago

Curious how this compares to Fargate for EKS, which already gives each pod its own VM boundary. Is the main difference that it runs on your own node groups (so DaemonSets, GPUs and custom AMIs still work), or is it about startup time and density? And what's the pod startup overhead in practice? For agent workloads that spin up a sandbox per task, that number decides whether this is usable.

2

u/admiralsj 13d ago

It seems similar to running a pod with gvisor. Just a runtime class maybe

1

u/csantanapr 12d ago

It uses the RuntimeClassName field but the implementation is a microVM with its own guest kernel
In gvisor the host kernel is shared

1

u/admiralsj 11d ago

Oops I meant to say Kata not gVisor. 

Hopefully Nitro Sandbox support will be added to the (non auto mode) EKS Bottlerocket AMIs soon! 🤞🏻

1

u/WorthRow3022 13d ago

Same interface maybe (a RuntimeClass on the pod), but a different boundary. gVisor is a user-space kernel that intercepts syscalls, so the isolation is software: it still runs on the shared host kernel, just exposing much less of it.

The pitch here is a hardware-enforced boundary per pod, closer to Kata or Firecracker microVMs. That's the part I'd want numbers on: microVM-style isolation usually costs startup time and memory per pod, which gVisor mostly avoids.

1

u/admiralsj 11d ago

Oops I meant Kata not gVisor!

I'd like to know how it compares to Kata

1

u/WorthRow3022 11d ago

Kata is the closer comparison. It also gives each pod its own lightweight VM through a RuntimeClass.

The difference I'd expect is who runs the VM. With Kata you run the hypervisor yourself, inside the node. On EC2 that has usually meant .metal instances, or accepting the cost of nested virtualization. If I read the announcement right, Nitro supplies the boundary here, so you get Kata-style isolation on ordinary instance types and don't have to run a hypervisor.

What I'd still want to see is the same numbers you'd ask Kata for: pod startup time and memory overhead per pod. OP, do you have those?

1

u/csantanapr 12d ago

Deamonsets and custom Amis work. GPU currently not supported

1

u/WorthRow3022 11d ago

Thanks, that settles the node-group side. DaemonSets and custom AMIs working is the main reason to pick this over Fargate.

Any numbers yet on pod startup overhead, compared with a normal runc pod? For agent workloads that create a sandbox per task, that's the deciding figure.

1

u/Dangerous-Sale3243 14d ago

Is this what ECS/Fargate uses?

1

u/csantanapr 12d ago

No, this is a new primitive. ECS added support for AWS Nitro Sandbox las week also

1

u/steveoderocker 14d ago

Is this/will this be supported outside of EKS i.e if we are running our own Kubernetes cluster on EC2, and loosely integrated with EKS?

2

u/csantanapr 12d ago

AWS Nitro Sandbox is supported on EC2, you can build your own containerd shim on self manage Kubernetes on AWS

2

u/MongooseWonderful198 14d ago

AWS documents a route outside EKS: run Nitro Sandboxes with your own orchestrator and Firecracker on EC2. That guide makes you responsible for guest images, device backends, resource accounting, networking and sandbox lifecycle.

That establishes support for the underlying EC2 feature, but doesn't establish that adding the EKS RuntimeClass will work in your existing Kubernetes distribution. The missing piece to check is the containerd/runtime integration for your nodes.

1

u/cloudfixer_dev 13d ago

The Fargate comparison hits the nail on the head. Keeping control over the underlying EC2 nodes—especially for GPU access and custom networking—makes this a massive win for agentic AI and multi-tenant workloads where you need pod-level microVM isolation without losing node-level flexibility. Building out the custom AMIs right now is the main hurdle, but it's a solid trade-off for the security boundary.

1

u/csantanapr 12d ago

Many end users build their own AMI and use Karpenter

0

u/mequelkramer 14d ago

This is a useful middle ground between namespace isolation and running separate clusters, and the Fargate comparison is the right question to ask.

Fargate for EKS already gives each pod its own microVM boundary, so the isolation goal is similar. The difference is what you keep control of. With Nitro Sandboxes you stay on EC2, so you can pick instance types, use GPUs, and keep the networking and node setup you already have. That matters a lot for agentic AI and model serving, where you want a pod level hardware boundary around something like vLLM without giving up GPU instances. Fargate is simpler because there are no nodes to manage, but it bills per vCPU and memory, it does not support privileged pods or DaemonSets, and GPU support is limited, so it fits a narrower set of workloads.

A few practical points if you try it. As noted above, right now you need a custom AMI unless you are on EKS Auto mode or Bottlerocket, so budget that setup work. The boundary is per pod, so each pod gets its own microVM, which cuts the shared kernel risk you have with plain namespaces and limits noisy neighbor problems between tenants. And think about cost per pod: you pay for the whole EC2 instance underneath, so it makes sense when the isolation is worth a dedicated instance per pod or per tenant, and less sense for lots of tiny pods where Fargate or plain namespaces would be cheaper.