On 26 November I spoke at the Cloud Native Meetup Belgium at Aikido Security about Agent Substrate, a new layer on Kubernetes for running AI agents. The talk was called Sandbox, Suspend & Scale: Kubernetes for the Agentic Era. Instead of only showing slides, I let the whole room take part: every phone in the audience became an AI agent, running live on a Kubernetes cluster.
This post is the written version: why agents are a different kind of workload, what Agent Substrate adds to Kubernetes, and a tour of the demo app I built for it, The SubstrEatery.

Thanks to the organisers of the Cloud Native Meetup Belgium and to Aikido Security for having us, and a shout out to everyone who played along with their phone.
Why agents are a different kind of workload
An AI agent spends most of its life waiting: for the model to answer, for a tool to return, for a human to reply. In between it works in short bursts. That makes it unlike anything Kubernetes was built around.
- Mostly idle: it waits far more than it computes.
- Stateful: its context, files and an open shell live inside the running process.
- Long-lived: minutes to days and even weeks, not milliseconds.
- Bursty: one task can fan out into many sub-agents.
- Untrusted: it runs code that nobody reviewed.
The usual ways of running them each hurt somewhere:
| Approach | Where it hurts |
|---|---|
| A Pod per agent | Idle agents keep holding CPU and memory. Scale to zero and the memory is gone, so every wake-up is a cold start. |
| Many agents in one Pod | Dense and cheap, but no security: one agent has potentially access to data from other agents running on the same pod. |
| Stateless, with a database | Fine for chat history data, but the state of a running process or an open shell doesn’t fit in a database. |
What we really need comes down to three things: a sandbox strong enough for untrusted code, the ability to suspend an idle agent without losing anything, and to scale to many agents on shared capacity.
Agent Substrate in a nutshell
Agent Substrate doesn’t replace Kubernetes; it adds an agent-focused layer on top of it. Each agent runs as an Actor. Actors live on ordinary Kubernetes Pods, called Worker Pods, and many Actors share one Pod.
- Sandbox. Every Actor runs in its own sandbox, gVisor or a Cloud Hypervisor microVM, with its own kernel. Networking is default deny, every Actor gets its own workload identity, and credentials are injected on the way out, so the agent itself never holds a secret.
- Suspend. An idle Actor is snapshotted to object storage and its slot on the Pod is freed. You choose what the snapshot keeps: only volumes, the root filesystem too, or everything including memory. With memory included, the Actor resumes as the same process, exactly where it stopped.
- Scale. Worker Pods are prepared in advance, so resuming an Actor doesn’t wait for a new Pod. The project’s stated goals are ambitious: wake-up in under 100 ms, and up to a billion Actors in one cluster. They’re targets, not today’s numbers.
Under the hood it’s built from standard Kubernetes pieces: custom resources such as WorkerPool and ActorTemplate, Deployments, DaemonSets, NetworkPolicies, Pod certificates and autoscaling. On top come a few new components: atenet-router (the mTLS entry point), ate-api-server (scheduling and snapshot workflows, with its state in PostgreSQL), atelet (the node agent that restores and snapshots) and atenet-egress (the gateway for outbound traffic).
A request for a suspended Actor goes like this: the router asks the API server where the Actor should run, the scheduler picks a Worker Pod with a free slot, atelet fetches the snapshot and restores it, and the router tunnels the request through.

The SubstrEatery: a restaurant where every guest is an agent
To make all of this visible, I built The SubstrEatery: a small restaurant on your phone. Scan a QR code, pick a face and an appetite, and you get a guest. That guest is a real Actor on Agent Substrate: a tiny Python process with no database, running in its own gVisor sandbox. Each table is a Worker Pod with 16 seats.
The evening went like this:
- The restaurant is closed. While people walk in, they make a reservation. Their guest already exists as an Actor, but nothing runs: no CPU, no memory.
- The kitchen opens. Every order is an HTTP request to the guest, which eats its dish one step at a time, all in process memory.
- Guests step outside. A guest that hasn’t ordered for 20 seconds is suspended and its seat goes to someone else. The next order brings it back, at any table with room.
- Full house. When every seat is taken, new orders wait at the door instead of failing, and idle guests are asked to give up their seat.
- Fire drill. One button suspends everybody at once. Each phone shows exactly how far its guest got, for example Dish 2, 71% eaten.
- All clear. Guests resume on their next order, at exactly the same percentage. The snapshot kept the running process, not just some data.
- A new table. Adding a Worker Pod takes seconds; seating a guest on it takes milliseconds. That difference is the whole point.
- The receipt. Guests who finish all their dishes get a bill showing how little of their time they actually held a seat.
The whole demo ran on a single EC2 instance with one Kubernetes node (kind), two Worker Pods scaling to three, and up to 48 guests eating at the same time.
More info
- Agent Substrate Website: ate.dev
- Agent Substrate GitHub: github.com/agent-substrate/substrate
Questions, or want to talk about running agents on Kubernetes? Reach out to us.
