“Sandbox” is one of the most searched words next to “Kubernetes” right now. But when you look closely, people are not all asking the same thing. The word means at least five different things in the Kubernetes world.
Some people want a safe place to run AI agent code. Some want a free cluster to practice on. Some are looking at the CNCF project levels. And many are just stuck with an error that says failed to create pod sandbox.
This post walks through each one, in plain words, so you can jump to the part you need.
Quick map: which “sandbox” do you mean?
| You are searching for… | You probably mean… | Jump to |
|---|---|---|
| “kubernetes agent sandbox”, “sandbox CRD”, “run AI agents on K8s” | Agent Sandbox (SIG Apps project) | Section 1 |
| “gvisor kubernetes”, “kata containers”, “runtimeclass sandbox” | Sandboxed container runtimes | Section 2 |
| “kubernetes sandbox online”, “free k8s playground” | A practice environment | Section 3 |
| “cncf sandbox project”, “sandbox vs incubating” | CNCF project maturity level | Section 4 |
| “failed to create pod sandbox” | A pod startup error | Section 5 |
1. Agent Sandbox: running AI agents on Kubernetes
This is the biggest reason “sandbox” is trending in 2026.
AI agents are not like normal web apps. An agent may run for a long time, keep context, call tools, and write and run its own code. That code came from a model, so you can’t fully trust it. You want it locked in a box.
Before Agent Sandbox, teams built that box by hand: a StatefulSet with one replica, a headless Service, and a PersistentVolumeClaim for each agent. That works for a few agents. It gets hard to manage when you have hundreds.
Agent Sandbox is a project under Kubernetes SIG Apps that gives you a proper API for this. The Kubernetes blog introduced it in March 2026 in the post Running Agents on Kubernetes with Agent Sandbox.
What it gives you:
- A Sandbox resource. One isolated, stateful workload with a stable hostname, network identity, and its own storage.
- SandboxTemplate. A reusable “shape” for a sandbox (image, runtime, resources).
- SandboxClaim. A way for an app or agent to ask for a sandbox from a template, a bit like a PVC asks for storage.
- SandboxWarmPool. A pool of pre-started sandboxes, so agents don’t wait for a cold start.
- Secure runtimes. It works with gVisor and Kata Containers for strong isolation (more on those below).
- A Python SDK to create and manage sandboxes from your agent code.
A simple Sandbox looks like this:
apiVersion: agents.x-k8s.io/v1alpha1
kind: Sandbox
metadata:
name: my-agent-sandbox
spec:
podTemplate:
spec:
runtimeClassName: gvisor
containers:
- name: agent
image: python:3.12-slim
command: ["sleep", "infinity"]
The project is still young and moves fast, so check the kubernetes-sigs/agent-sandbox repo for the latest API version and install steps.
Want the full story? We covered the risks of letting agents touch your cluster in Don’t Let Your AI Agent Run kubectl: Sandboxing LLM-Generated Code on Kubernetes.
Running agents on your laptop instead? For local work, tools like Docker Sandboxes run coding agents inside microVMs, so the agent gets its own isolated machine instead of your host.
2. Sandboxed runtimes: gVisor and Kata Containers
A normal container shares the host’s Linux kernel. If code inside breaks out, it can reach the node. For trusted apps that is usually fine. For untrusted code (AI output, customer scripts, CI jobs from forks) it is a real risk.
Sandboxed runtimes add an extra wall:
- gVisor puts a user-space kernel between the container and the host. System calls go to gVisor first, not straight to the real kernel.
- Kata Containers runs each pod inside a lightweight virtual machine with its own kernel.
In Kubernetes you pick a runtime with a RuntimeClass:
apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
name: gvisor
handler: runsc
---
apiVersion: v1
kind: Pod
metadata:
name: untrusted-job
spec:
runtimeClassName: gvisor
containers:
- name: job
image: alpine:3.20
command: ["echo", "hello from a sandbox"]
Your nodes need the runtime installed first (for example runsc for gVisor). On GKE you can turn on GKE Sandbox, which uses gVisor for you.
Which one should you pick?
| gVisor | Kata Containers | |
|---|---|---|
| How it isolates | User-space kernel | Lightweight VM |
| Startup | Fast | A bit slower |
| Compatibility | Most apps, some syscalls not supported | Very high, real kernel |
| Needs nested virtualization | No | Usually yes on cloud VMs |
| Good for | Many small untrusted jobs | Workloads that need full kernel behavior |
3. Kubernetes sandbox to practice on
Many people searching “Kubernetes sandbox” just want a free place to try kubectl without breaking anything. Good news: you have lots of choices.
In the browser (nothing to install):
- Killercoda has free interactive Kubernetes scenarios and playgrounds.
- SadServers offers Kubernetes playgrounds and troubleshooting challenges.
- Play with Kubernetes gives you short-lived clusters in your browser.
On your own machine:
- kind runs a cluster inside Docker containers. Great for quick tests and CI.
- minikube gives you a single-node cluster with lots of add-ons.
- k3d runs the lightweight k3s distribution in Docker.
- Docker Desktop has a built-in Kubernetes option you can switch on.
A two-minute start with kind:
kind create cluster --name sandbox
kubectl get nodes
kubectl run hello --image=nginx
kubectl get pods
kind delete cluster --name sandbox # clean up when done
Sandbox for your team, not just you: if you need a safe copy of a cluster for each developer or each pull request, look at namespace-per-developer setups or virtual clusters (vcluster). These give each person their own space without paying for a full cluster each time.
Not sure where to begin? Our Kubernetes Learning Path in 2026 takes you from your first cluster to production.
4. CNCF Sandbox: the first level for new projects
If you saw “Sandbox” on the CNCF Landscape, it has nothing to do with isolation. It is a maturity level.
CNCF projects move through three stages:
- Sandbox: early-stage projects. A place to experiment and grow a community.
- Incubating: projects with real users in production and a healthy group of maintainers.
- Graduated: mature, widely used projects with a security audit and strong governance. Kubernetes itself is graduated.
A Sandbox project is not “bad”. It just means the project is new, and you should check its activity and docs before betting production on it.
We explain the full journey in CNCF Landscape Explained: How Projects Move from Sandbox to Incubating to Graduated.
5. “Failed to create pod sandbox”: fixing the error
This is the most practical search of all. Your pod is stuck in ContainerCreating and the events say something like:
Warning FailedCreatePodSandBox kubelet Failed to create pod sandbox: rpc error: ...
What is a “pod sandbox”? Before your containers start, the container runtime (containerd or CRI-O) creates a small environment for the pod: its network namespace, IP address, and a tiny “pause” container that holds it all together. That is the pod sandbox. If that step fails, your app containers never start.
Common causes:
- CNI (network plugin) problems. This is the number one cause. The plugin (Calico, Cilium, Flannel and so on) is missing, crashing, or not configured on that node.
- No free pod IPs. The node or subnet ran out of IP addresses.
- Pause image can’t be pulled. Common in air-gapped clusters or when a registry is blocked.
- Container runtime issues. containerd or CRI-O is unhealthy, or the cgroup driver does not match the kubelet.
- Wrong RuntimeClass. The pod asks for
gvisororkatabut that handler is not installed on the node.
How to debug, step by step:
# 1. Read the exact error
kubectl describe pod <pod-name> -n <namespace>
kubectl get events -n <namespace> --sort-by='.lastTimestamp' | tail -20
# 2. Check the network plugin pods
kubectl get pods -n kube-system -o wide | grep -Ei 'calico|cilium|flannel|cni'
# 3. Check the node itself (SSH into the node)
sudo systemctl status containerd # or crio
sudo journalctl -u kubelet --since "15 min ago" | grep -i sandbox
sudo crictl pods # list pod sandboxes
ls /etc/cni/net.d/ # is there a CNI config?
The error message after rpc error: almost always tells you which of the causes above you hit. Read it slowly before you restart anything.
Wrapping up
When someone says “sandbox” and “Kubernetes” in the same sentence, ask one question first: which sandbox?
- Running AI agents safely? Look at Agent Sandbox.
- Running untrusted code? Use gVisor or Kata with a RuntimeClass.
- Just learning? Grab kind, minikube, or Killercoda.
- Reading the CNCF Landscape? Sandbox is the first maturity level.
- Seeing “failed to create pod sandbox”? Start with your CNI plugin.
The AI agent use case is growing fastest, and we expect Agent Sandbox to become a common part of Kubernetes platforms over the next year. We will keep covering it here on Kubezilla.
Which sandbox were you looking for? Tell us in the comments, and we will go deeper on the one you need.
