# How to Run AI Agents on Kubernetes with Pulumi

DevFeed: [How to Run AI Agents on Kubernetes with Pulumi](<https://devfeed.tech/articles/how-to-run-ai-agents-on-kubernetes-with-pulumi-18986.md>)

Original publisher: [Read original article](<https://www.pulumi.com/blog/ai-agents-on-kubernetes/>)

Author: Joe Duffy

Published: 2026-07-28T00:00:00Z

Content type: article

Language: en

Sources: [Pulumi](<https://devfeed.tech/sources/pulumi.md>)

Topics: [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>), [pulumi](<https://devfeed.tech/topics/pulumi.md>), [pulumi-neo](<https://devfeed.tech/topics/pulumi-neo.md>)

Tags: [agentic](<https://devfeed.tech/tags/agentic.md>), [agentic-ai](<https://devfeed.tech/tags/agentic-ai.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [general](<https://devfeed.tech/tags/general.md>), [governance](<https://devfeed.tech/tags/governance.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [infrastructure-as-code](<https://devfeed.tech/tags/infrastructure-as-code.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [platform-engineering](<https://devfeed.tech/tags/platform-engineering.md>), [pulumi](<https://devfeed.tech/tags/pulumi.md>), [pulumi-neo](<https://devfeed.tech/tags/pulumi-neo.md>)

## AI overview

Agent workloads need more deliberate Kubernetes infrastructure than a copied web service Deployment: they may use bursty GPU or other accelerator capacity, keep conversational state across long sessions, and call provider APIs, tools, or other agents. The excerpt argues Kubernetes remains suitable because its scheduler, autoscaling, and RBAC provide useful building blocks, while emphasizing design attention to GPU scheduling, secrets, and limiting an agent's permissions and blast radius. It frames Pulumi with TypeScript and Python as a way to provision and govern the underlying infrastructure, complementary to the agent runtimes and model-serving ecosystem. The excerpt ends before describing specific tools or implementation steps.

## Source excerpt

Kubernetes has become the default place teams run agentic AI workloads: CNCF's 2026 annual survey found that 66% of organizations hosting generative AI models use Kubernetes to manage some or all of their inference workloads.1 An entire ecosystem has grown up around that fact -- agent runtimes, model servers, GPU schedulers -- and most of it assumes the infrastructure underneath is already handled. It usually isn't. An AI agent is not a stateless web service, and provisioning for one takes more than copying a Deployment YAML and swapping the image. I spend a lot of my time these days thinking about what changes when the thing consuming your infrastructure isn't a person or a fixed pipeline, but an agent making its own calls about what to do next -- and Kubernetes is where I keep seeing that question show up first, because it's already where most teams run everything else. This post is about that gap: what changes about Kubernetes infrastructure when the workload is an agent, what the current agentic-Kubernetes ecosystem actually looks like, and how to provision and govern that infrastructure with Pulumi using TypeScript and Python -- plus where Pulumi Neo fits once the infrastructure itself has to answer to an agent. If you haven't read our take on the broader shift toward agentic infrastructure, What Is Agentic Infrastructure? is a good companion piece; this post stays specific to the Kubernetes layer. What makes agentic AI workloads different from ordinary Kubernetes workloads? An agent's resource and governance profile looks nothing like a typical web service, largely because it schedules accelerators, holds state across long sessions, and reaches out to systems a normal Deployment never touches. Dimension Typical web service Agent workload Compute CPU, predictable Often GPU/accelerator, bursty Session shape Short-lived, stateless requests Long-lived sessions, conversational state Egress Internal services, one database Model provider APIs, arbitrary tools, other agen