
Running AI Agents on Kubernetes Without Handing Them the Cluster: Agent Sandbox + gVisor, Step by Step
AI agents execute generated code, take instructions from untrusted content, and hold real credentials β so a normal pod's trust model does not fit them. This step-by-step guide builds the sandbox stack on Kubernetes: a quota'd namespace, an agent identity with zero Kubernetes permissions, gVisor kernel isolation via RuntimeClass, the Agent Sandbox CRD (templates, warm pools, expiring claims), default-deny networking with named egress, short-lived scoped credentials, and the audit trail to go with it.
