WOSS
kagent: Running AI Agents the Kubernetes Way
Aman Mundra · July 9, 2026 · 4 min read

TL;DR - kagent is an open-source framework that brings agentic AI into Kubernetes. Instead of running an agent runtime as an external service bolted onto your cluster, kagent models agents, sessions, and tools as Kubernetes CRDs - reconciled by an operator, governed by GitOps, RBAC, and admission control. It speaks MCP, Agent-to-Agent (A2A), and OpenAI-compatible APIs to avoid lock-in. A CNCF Sandbox project since May 2025, it hit 100 contributors in its first 100 days - one of the clearest signals of where cloud-native AI is heading.
There is a quiet architectural question underneath the entire "AI agents in production" conversation: where does the agent actually run, and who governs what it is allowed to do? Most frameworks answer by adding a new runtime - a service you deploy, monitor, and secure separately from everything else. kagent answers differently, and the difference is the whole point.
Kubernetes-native, all the way down
kagent's design principle is that the agent should not be a black box running beside your cluster - it should be a first-class Kubernetes object inside it. Agents, sessions, and tools are defined as Custom Resource Definitions (CRDs), and a controller (a standard Kubernetes operator) reconciles them the way any operator reconciles desired state.
That single decision cascades into everything platform teams care about:
- The agent's definition lives in Git. It ships through your existing CD pipeline, gets code-reviewed, and has a version history. An agent becomes a reviewable, auditable, declarative resource instead of an opaque process.
- RBAC governs what it can do. The same role-based access control that constrains every other Kubernetes workload constrains your agents - who can deploy them, what they can touch.
- Admission control can gate it. Policy engines you already run can inspect and permit or reject agent definitions before they ever execute.
In other words, kagent reuses the entire trust apparatus platform teams have spent a decade building - kubectl, GitOps, RBAC, admission control - rather than asking you to invent a parallel one for AI agents. For anyone who has watched a shadow AI stack grow up ungoverned next to a carefully-run cluster, the appeal is immediate.
What it looks like
At the core is a small set of CRDs and a controller:
- An Agent resource defines an agent - its model, its instructions, the tools it can call.
- Tool resources define what the agent can act on, exposed over MCP (Model Context Protocol) or A2A (Agent-to-Agent).
- A Session tracks a running interaction.
- The kagent controller reconciles all of it, applying RBAC, admission control, and GitOps the way an operator applies desired state.
Crucially, kagent is deliberately unopinionated about the AI layer: any LLM, any framework, any tool. Its native MCP, A2A, and OpenAI-compatible endpoints mean you are not locked into one model vendor or one agent framework - it is the cloud-native plumbing, not the intelligence. In practice it already ships agents that integrate with the tools cloud-native operators live in: Kubernetes itself, Argo, Istio, Prometheus, Grafana, and Helm - so the agents can actually do platform work, not just talk about it.
Why it matters
kagent sits at the exact seam between two worlds that are rapidly merging: cloud-native infrastructure and agentic AI. It bridges the CNCF ecosystem and the agent-protocol world of the Agentic AI Foundation through native MCP support (for how those protocols differ, see MCP vs A2A). It is, in a real sense, the answer to "how do we run agents in production without abandoning everything we know about running production."
It is also young, and that is part of the story. Accepted to CNCF Sandbox in May 2025, kagent reached 100 contributors (over 85% from outside its originating company) and 1,000+ GitHub stars within 100 days - unusually fast, and a signal that the Kubernetes-native framing resonated with the people who actually operate clusters. As a Sandbox project it moves fast and expects breaking changes, so pin your versions; but weekly releases and maintainers who answer on Discord in hours make it an unusually approachable project to learn from or contribute to.
For a platform team, kagent is worth watching for a simple reason: if agents are going to run in production, they will need to be governed like everything else that runs in production. kagent is a serious attempt to make that true by construction.
Further reading
Frequently asked questions
What is kagent?
kagent is an open-source framework that runs agentic AI natively inside Kubernetes. Instead of deploying an agent runtime as a separate service beside your cluster, it models agents, sessions, and tools as Kubernetes Custom Resource Definitions (CRDs) that a controller reconciles like any other operator. It speaks MCP, Agent-to-Agent (A2A), and OpenAI-compatible APIs, and has been a CNCF Sandbox project since May 2025.
How does kagent govern AI agents differently from bolt-on agent frameworks?
kagent reuses the trust apparatus platform teams already run rather than asking them to build a parallel one for AI. Because an agent is a Kubernetes object, its definition lives in Git and ships through your existing CD pipeline, RBAC controls who can deploy it and what it can touch, and admission control can inspect and reject an agent definition before it ever executes. Most other frameworks add a new external runtime you have to secure and monitor separately.
Why does kagent model agents and tools as Kubernetes CRDs?
Modeling agents, tools, and sessions as CRDs turns an otherwise opaque process into a reviewable, auditable, declarative resource. An Agent resource defines the model, instructions, and tools it can call; Tool resources expose actions over MCP or A2A; a Session tracks a running interaction; and the kagent controller reconciles all of it. This means the agent gets version history, code review, GitOps, and policy enforcement for free instead of running as a black box.
Does kagent lock you into a specific LLM or agent framework?
No. kagent is deliberately unopinionated about the AI layer and supports any LLM, any framework, and any tool. Its native MCP, A2A, and OpenAI-compatible endpoints mean it acts as cloud-native plumbing rather than the intelligence itself, so you are not tied to one model vendor. It already ships agents that integrate with tools operators use daily, such as Kubernetes, Argo, Istio, Prometheus, Grafana, and Helm.










