Menu
InfoQ Architecture·August 6, 2026

Optimizing AI Agent Deployments on Kubernetes: Pods as Workers vs. Agents

This article explores the architectural challenge of deploying AI agents on Kubernetes, contrasting the traditional "one agent per Pod" model with a new "Pods as workers, not agents" paradigm. It discusses how the bursty, short-lived nature of AI agents conflicts with Kubernetes' microservice-centric abstractions, leading to inefficiencies and complex lifecycle management. The proposed solution involves an Agent Substrate control plane above Kubernetes to manage logical agents, allowing a fixed pool of Pods to serve many agents more efficiently.

Read original on InfoQ Architecture

The Challenge with AI Agents on Kubernetes

Traditionally, deploying applications on Kubernetes often means treating each logical unit (like a microservice) as a first-class Kubernetes workload with its own Pod, Service, and ServiceAccount. While effective for continuously available services, this model proves inefficient for AI agents, which are often short-lived, bursty, and may wake only for specific tasks, then sit idle. This leads to wasted resources and management overhead if each potential agent has a dedicated Pod.

  • Process and container isolation for each agent
  • ServiceAccount identity for existing authentication/authorization integration
  • Application of Kubernetes network and admission policies
  • Per-agent attribution of logs, metrics, and traces
  • Kubernetes-native scheduling and resource management

Pods as Workers, Not Agents: The Agent Substrate Approach

To address the limitations, the "Pods as workers, not agents" approach introduces a control plane, such as Agent Substrate, layered above Kubernetes. In this model, Kubernetes continues to manage the underlying compute resources (Pods, Services, networking, storage), but the Agent Substrate takes responsibility for the lifecycle and placement of logical AI agents onto these worker Pods.

ℹ️

Key Abstractions in Agent Substrate

Agent Substrate introduces new abstractions that mirror familiar Kubernetes concepts: - WorkerPool: Analogous to a NodePool, representing a group of worker Pods. - Workers: Analogous to Nodes, where each Worker maps to a single, long-lived Pod. - ActorTemplate: A declarative specification for an AI agent, similar to a Pod definition. - Actor: The logical AI agent entity that is scheduled onto a Worker Pod when work arrives and managed through its lifecycle (suspended, resumed, removed).

Architectural Implications

This architectural shift has significant implications beyond just scheduling efficiency. Identity, access control, network policy, and runtime permissions may shift from being Pod-centric to being defined at the ActorTemplate, namespace, or tenant level, with per-Actor overrides. Observability also needs to evolve to track the logical agent (Actor) regardless of which physical Worker Pod it executes on, ensuring logs, traces, and audit records are correctly attributed.

  • Improved resource utilization by allowing a fixed pool of long-lived Pods to support a much larger number of logical agents.
  • Decoupling of logical agent lifecycle from physical Pod lifecycle.
  • Challenges in redefining identity, access control, and observability for logical agents across dynamic worker Pods.
KubernetesAI AgentsCloud NativeContainerizationWorkload ManagementDistributed ComputingResource OptimizationControl Plane

Comments

Loading comments...