How AI Worker Platform made agent sandboxes elastic on Kubernetes
The author, @amata1219 of AI Shift, describes how the team made agent sandboxes elastic in AI Worker Platform, its agent-building platform. Earlier, the number of concurrent sandboxes was fixed, so agents waited when none were free, and adding replicas raised infrastructure costs. Because each agent action needs its own sandbox, the author says Horizontal and Vertical Pod Autoscaler did not fit, so the team used KEDA[1] with ScaledJob and set its polling interval to 1 second instead of the 15-second default of the HPA sync period.
On managed Kubernetes, creating a node can take 30 to 40 seconds or more, so the team uses balloon Pods[2]: low-priority placeholder Pods that reserve nodes in advance, with pod anti-affinity so that they spread across nodes. The author also notes that the nodes cache the container image, which shortens sandbox cold starts.
The author gives cost figures: a GKE Standard e2-standard-8 node running 730 hours in the Tokyo region costs about $250 per month (as of 2026/11), while a balloon Pod requesting 500m CPU and 512Mi memory costs about $22 per month. The author suggests that Pod-based billing modes such as GKE Autopilot make balloon Pods more cost-effective. The article also warns that Cilium's BPF map can fill up when Pods are created and deleted quickly, because the random suffix in Job names changes the security identity, and the rest of the article covers mitigations.
Sources
-
JPZenn JA
エージェントサンドボックスに弾力性を与える2026



