AWS
← Back to Blog
AWSNovember 16, 2026·4 min read

AWS Nitro Sandboxes for EKS: Secure Pods with a Single RuntimeClass

Why the debate over container isolation matters now

For months the Kubernetes community has been split on whether the default container runtime provides enough isolation for high‑risk workloads. Some argue that Linux namespaces and cgroups are sufficient, while others point to side‑channel exploits that jump from one container to another on the same host. The conversation resurfaced when AWS announced Nitro Sandboxes for EKS, promising a hardware‑level barrier without turning the cluster into a collection of VMs.

Editorial illustration for AWS Nitro Sandboxes for EKS: Secure Pods with a Single RuntimeClass

What changed: a single RuntimeClass for all pods

Earlier Nitro Sandboxes required a custom runtime per node pool, making rollout cumbersome. The new model introduces a single RuntimeClass named nitro-sandbox. When a pod references this class, the control plane spins up a microVM for that pod, keeping the pod’s lifecycle unchanged from a developer’s point of view. The microVM runs on the Nitro hypervisor, which is the same silicon that powers the underlying EC2 instances, so the isolation is truly hardware based.

Who benefits

Enabling Nitro Sandboxes in an existing cluster

The steps are straightforward:

  1. Make sure your node group runs on an instance type that supports Nitro (most current generation instances do).
  2. Install the aws-nitro-sandbox daemonset provided by AWS. This component talks to the kubelet and requests a microVM whenever a pod uses the RuntimeClass.
  3. Create the RuntimeClass resource:
apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
  name: nitro-sandbox
handler: nitro-sandbox

After the RuntimeClass is in place, you can start annotating pods.

Updating pod specifications

Only a single line changes in the pod spec. Here is a minimal example that runs an nginx container inside a Nitro sandbox:

apiVersion: v1
kind: Pod
metadata:
  name: nginx-secure
spec:
  runtimeClassName: nitro-sandbox
  containers:
  - name: nginx
    image: nginx:1.25-alpine
    ports:
    - containerPort: 80

The rest of the manifest stays the same, so you can adopt the feature pod‑by‑pod or roll it out cluster‑wide with a mutating webhook.

Auditing isolation levels

AWS emits a CloudWatch metric called NitroSandboxMicroVMCount per node, which tells you how many microVMs are active. Combine it with a kubectl get pods -o jsonpath='{.items[*].status.hostIP}' query to map pods to their host. For compliance you might want a script that verifies every pod in a protected namespace includes runtimeClassName: nitro-sandbox. A simple Bash snippet looks like this:

# Verify all pods in "prod-secure" use Nitro Sandbox
NAMESPACE=prod-secure
kubectl get pods -n $NAMESPACE -o json | \
  jq -r '.items[] | select(.spec.runtimeClassName != "nitro-sandbox") | .metadata.name' || echo "All good"

If the script returns any names, those pods are falling back to the default runtime and need attention.

Practical implications and limits

When to adopt now and when to wait

If your team is already subject to PCI‑DSS, HIPAA, or similar standards that require strong isolation, flipping the RuntimeClass on a staging namespace can be a quick win. For workloads that are purely development or that need ultra‑low latency, you might keep the default runtime until the ecosystem matures.

Takeaway

By exposing Nitro Sandboxes through a single RuntimeClass, AWS removed the biggest friction point for EKS users. The result is a practical path to hardware isolation that fits into existing CI/CD pipelines, gives security teams a measurable control point, and satisfies auditors looking for concrete separation. The trade‑offs are modest – a small start‑up cost and a bit more memory usage – but the reduction in blast radius makes it a compelling option for any production workload that can afford the slight performance hit.

Source: InfoQ

Ready to find your automation candidates?

We run a structured AI Readiness Assessment for SMEs — two weeks, concrete output, no fluff. You’ll hear back directly from Kerim.

Start with an AI Assessment

Topics

AWSEKSNitro SandboxesKubernetes Security