Kubernetes works for vLLM inference, but agent sandboxes needed Modal's custom stack at 1M+ concurrency

NielsRogge · x · 2026-10-26

Responding to whether Kubernetes fits AI inference and agent workloads, NielsRogge points out inference is fine on K8s: vLLM's production-stack is a K8s-native deployment supporting distributed scaling without app-code changes, with KV-cache-aware routing, load-aware routing, prefix-aware routing, cross-instance KV cache sharing, and disaggregated prefill. But agent sandboxes are different — Modal wrote that K8s isn't optimal there, scaling their custom solution to over 1 million concurrent sandboxes. Takeaway: vLLM/SGLang on K8s is the go-to for inference, while sandbox workloads need purpose-built infrastructure.

Original post →

More from coding & agent

coding & agent channel →