How we scale secure sandboxes with Kubernetes
How Guplet schedules Firecracker microVMs, prepares capacity ahead of time, and keeps managed credentials outside the guest.
A tool call might need a clean Linux environment just long enough to run a Python script. A coding agent might spend hours in a workstation, installing dependencies, running tests, and picking up where it left off. In Guplet, both run in Firecracker microVMs. Their startup paths differ because the cost of preparing an environment matters much more when the work lasts a few seconds.
We use Kubernetes to decide where each sandbox runs and account for the resources it reserves. A node agent manages the VM itself. That split lets us prepare capacity before a request arrives while keeping the same guest isolation boundary on both paths.
A pod reserves the space. Firecracker runs the code.
When you create a sandbox, the Guplet API writes a MicroVM custom resource that describes what should run. Our controller reconciles that request with a small slot pod. The pod carries the sandbox’s resource requests and gives it an IP address and a network namespace. Kubernetes can schedule it alongside other work and apply the cluster’s network policy to its traffic.
On the chosen worker, the node agent prepares the disk and networking, then starts or restores Firecracker. The guest has its own Linux kernel and writable disk. Its traffic goes through the slot’s network namespace, so the VM participates in pod networking even though the Firecracker process runs as a host service. Keeping that process separate from the node agent also lets a running VM survive an agent restart.
Prepare the pieces that make startup slow
A sandbox can be slow to start even when restoring its memory is fast. The VM still needs a pod with an address and a writable disk. We moved each piece of work off the request path where we could.
- Golden snapshots capture a prepared guest’s memory and VM state. Compatible workers can restore a fresh guest from that image with its own writable copy-on-write disk. Goldens are built for compatible CPU classes. A customer’s paused workstation uses its own saved state and resumes where that state lives.
- Shadow pods give the controller pre-created pods whose network is already up. When a shadow pod fits, the controller adopts it and waits for the kubelet to admit the sandbox’s resource reservation. If admission fails or takes too long, the controller can create a regular slot pod.
- Pre-cut disks are thin clones of selected golden disks, prepared before anyone asks for one. Assigning an unused clone takes a storage operation out of the create path. Each clone is assigned to one VM.
Fast Spawn goes one step further. It claims a ready-to-restore toolbox sandbox from a warm pool. The image already has Python, Node.js, Git, and common data libraries, so a short task can start without an install step. When a matching warm slot is unavailable, the request can use the cold path. Workstation creates use the on-demand path and can still restore from a compatible golden. A Workstation can keep its disk across stop and start, or keep its processes across pause and resume.
Put the credential boundary outside the VM
A VM boundary isolates guest code from the host. It still matters what that code can reach and which credentials it can use. On Guplet-hosted sandboxes, an optional hostname allowlist lets a team restrict outbound HTTP and HTTPS. An egress proxy outside the VM enforces that policy. For guarded sandboxes, the node agent installs the network rules and starts the proxy before the guest starts or resumes.
Guplet-managed secrets follow the same path. The guest receives a placeholder. When it sends an HTTPS request to a host authorized for that secret, the proxy inserts the real value in the configured part of the request and forwards it. For a request to a disallowed host, the proxy blocks the connection. Usage and denial counts give teams a way to see what happened. The credential remains usable on its approved host, so the permissions granted by that credential still matter. See Guplet’s sandbox security model.
Measure when the agent can do its first piece of work
On November 24, 2026, we measured both the time to reach Running and the time to complete a first command. These were small toolbox sandboxes on one production worker.
| Launch path | Running | First command completed | Runs |
|---|---|---|---|
| Fast Spawn with a warm slot | 0.47 s | 0.61 s | 10 |
| Workstation | 0.78 s | 0.91 s | 8 |
A first import of pandas and Matplotlib took 1.12 seconds in a fresh sandbox in a separate smoke test. That number matters to the application as much as startup time does. The right image can save more time than a faster boot.