# Building AI Agents That Manage Kubernetes

DevFeed: [Building AI Agents That Manage Kubernetes](<https://devfeed.tech/articles/building-ai-agents-that-manage-kubernetes-17481.md>)

Original publisher: [Read original article](<https://kodekloud.com/blog/building-ai-agents-that-manage-kubernetes/>)

Author: Nimesha Jinarajadasa

Published: 2026-07-27T05:00:53Z

Content type: tutorial

Language: en

Sources: [Kubernetes - KodeKloud Blog | DevOps, Cloud, Kubernetes, AI Tutorials & More](<https://devfeed.tech/sources/kubernetes-kodekloud-blog-devops-cloud-kubernetes-ai-tutorials-more.md>)

Topics: [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [kubectl](<https://devfeed.tech/topics/kubectl.md>), [Python](<https://devfeed.tech/topics/python.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [kubectl](<https://devfeed.tech/tags/kubectl.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [python](<https://devfeed.tech/tags/python.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

## AI overview

A hands-on tutorial for building a supervised AI agent that manages Kubernetes through an LLM and kubectl tool-calling loop. The agent reads cluster state, proposes approved actions such as scaling a deployment, applies guardrails and human approval, and verifies the result on a throwaway cluster.

## Source excerpt

Build a supervised AI agent that manages Kubernetes: an LLM in a kubectl tool loop with real guardrails. Full hands-on tutorial, live output.