Agentic AI
AI Agents Should Reason, Not Rule: Why Kubernetes Operators Still Control the Cluster
Platform teams are deploying AI agents to help manage Kubernetes, but the safest approach keeps deterministic operators in charge of execution while agents handle investigation and recommendation.
1/4
The New Stack
Kubernetes controllers and AI agents both iterate on a control loop—observing state, comparing it to a goal, and acting to close the gap. That similarity masks a crucial difference in how they should operate together in production clusters.
Kubernetes operators are built for predictability. They follow fixed rules, retry systematically, and converge on a declared desired state. AI agents excel when the destination is clear but the route is uncertain—they can gather context from multiple systems, weigh competing constraints, and suggest intelligent next steps. Asking either to do the other's job undermines the safety and reliability that production workloads demand.
A Safer Pattern: Reasoning Plus Deterministic Execution#
The strongest architectural approach separates concerns. Agents provide context and reasoning. Operators, policy engines, and other deterministic systems retain responsibility for actually changing the cluster.
Kagent, an open-source CNCF Sandbox project, exemplifies this division. It runs AI agents as Kubernetes resources and gives them read access to Kubernetes resources, logs, metrics, documentation, and custom APIs. An agent can investigate broadly—inspecting configurations, querying observability data, consulting evidence from many angles—without holding write authority over the cluster.
The approval boundary is critical. Read-only operations and diagnostic queries can execute automatically. Any change—applying, patching, or deleting resources—requires explicit approval. This separation lets the agent conduct thorough diagnosis while keeping an uncertain reasoning process from accidentally misconfiguring production systems.
The resulting loop unfolds as: observe, diagnose, propose, approve, reconcile, and verify. Agents own the first three. Kubernetes handles reconciliation. Verification confirms that approval and execution produced the intended outcome, rather than assuming success.
Karpenter: Why Replacing Logic With LLMs Breaks the Contract#
Consider a cluster where Karpenter provisions capacity predictably but exhibits underutilized nodes, slow consolidation, or wasted Spot capacity. Karpenter itself is already an operator—it evaluates scheduling constraints and reconciles node pools reliably. Replacing that logic with an LLM would sacrifice predictability for guesswork.
A better move: let an agent work Karpenter. It can examine node pool configuration, pending workloads, Kubernetes events, disruption budgets, and Prometheus metrics, then investigate why reality diverges from the team's goals.

