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.

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
- EKS operators can enforce stronger isolation policies without rewriting CI pipelines.
- Security teams gain a concrete control point for compliance scans – each pod lives in its own security domain.
- Auditors now have a clear artifact (the microVM) to verify during assessments.
Enabling Nitro Sandboxes in an existing cluster
The steps are straightforward:
- Make sure your node group runs on an instance type that supports Nitro (most current generation instances do).
- Install the
aws-nitro-sandboxdaemonset provided by AWS. This component talks to the kubelet and requests a microVM whenever a pod uses the RuntimeClass. - 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
- Start‑up time for a microVM is a few hundred milliseconds – acceptable for most web services but noticeable for bursty batch jobs.
- Each microVM has its own network namespace, so you lose the ability to share the host’s network stack without extra configuration.
- Memory overhead is modest (roughly 30 MiB per microVM), but you should size your nodes with a safety margin when scaling up.
- Debugging inside a microVM uses the same
kubectl execworkflow; the only difference is that the exec runs inside the VM’s minimal kernel.
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