RSS Amplifier

DevOpsGuy’s Newsletter · Oct 17, 2025

Becoming a Kubernetes Ninja

0
Sign in to vote or save

DevOpsGuy · DevOpsGuy’s Newsletter

Let’s be honest: you became a “Kubernetes specialist” because you enjoyed copying and pasting YAML from Stack Overflow, not because you wanted to understand what any of it does.

But now the cluster’s on fire again, pods are crashing harder than your last relationship, and you’ve spent the last hour pasting error messages into ChatGPT like some kind of digital middleman.

Well, put down your kubectl cheat sheet and stop bothering your coworkers, because Kagent is here to automate what you’ve been faking this whole time. It’s an open-source framework that brings AI agents to Kubernetes, because apparently now even our infrastructure needs therapy

Picture this: it’s 3 AM, PagerDuty is blowing up your phone, and you’re staring at a pod in CrashLoopBackOff for the forty-seventh time tonight.

Your “troubleshooting process” looks something like this:

  1. Run kubectl get pods and look for the red parts

  2. Copy logs that look angry

  3. Paste into ChatGPT with “please help”

  4. Try the suggested fix

  5. Create a bigger problem

  6. Repeat until sunrise or until you get fired

You’re not a Kubernetes expert - you’re a professional copy-paster with a fancy title. Kagent aims to automate even that minimal effort by giving AI agents tools, memory, and the ability to actually do things in your cluster . It’s like hiring an intern who actually knows what they’re doing, but without the coffee runs.

Before we begin, let’s get one thing straight: Kagent is “Kubernetes-native,” which means it requires approximately seventeen different tools just to install. Make sure you have:

  • Kubernetes cluster: Any will do, but production clusters add extra excitement

  • Helm: Because writing actual YAML is for peasants

  • kubectl: You’re still going to need this for when Kagent breaks

  • LLM API key: Because this magic isn’t free, unless you use Ollama and pretend it works as well

Let’s begin the installation ceremony that every Kubernetes application demands:

# First, install the CRDs because regular resources are too mainstream
helm install kagent-crds oci://ghcr.io/kagent-dev/kagent/helm/kagent-crds --namespace kagent --create-namespace
# Set your OpenAI key, or use a dummy if you’re cheap
export OPENAI_API_KEY=”your-actual-key-or-just-pretend”
# Deploy the main event and pray to the Kubernetes gods
helm install kagent oci://ghcr.io/kagent-dev/kagent/helm/kagent --namespace kagent --set providers.openAI.apiKey=$OPENAI_API_KEY

When you have to explain to management why you’re installing AI agents in the cluster

If you used a dummy key because your company won’t spring for OpenAI credits, don’t worry - the pods will fail gracefully, much like your last deployment.

But hey, at least you can say you’re doing “AI” now!

Once the pods decide to run (give it 5-10 minutes, or until the next business day), do the classic Kubernetes dance:

bash

kubectl port-forward service/kagent-ui 8080:80 -n kagent

Now open

http://localhost:8080

and behold - another dashboard to monitor! Because who doesn’t need more tabs open?

The Kagent UI comes with pre-built agents for various tasks, which is corporate-speak for “they did the work so you don’t have to.” You’ll find specialists for:

  • Argo Rollouts Conversion Agent: For when you want to overcomplicate your deployments

  • Cilium Agent: To troubleshoot networking that you never understood anyway

  • Observability Agent: To generate pretty graphs that nobody looks at

  • Helm Agent: For managing the charts that manage the charts that manage your apps

When your Kagent actually fixes the production issue

The cool kids are using Gemini these days, so let’s configure that instead of boring old GPT:

  1. Create a secret (the Kubernetes kind, not your crush from high school):

    bash

kubectl create secret generic kagent-gemini -n kagent --from-literal=GOOGLE_API_KEY=”<YOUR_GOOGLE_API_KEY>”
  1. Apply some ModelConfig YAML because we haven’t had enough YAML today:

    yaml

apiVersion: kagent.dev/v1alpha2
kind: ModelConfig
metadata:
  name: gemini-model-config
  namespace: kagent
spec:
  apiKeySecret: kagent-gemini
  apiKeySecretKey: GOOGLE_API_KEY
  model: gemini-2.5-pro
  provider: Gemini
  gemini: {}
  1. Apply it with kubectl apply -f and pray it works, or don’t - what do I care?

Now for the moment of truth: talking to your cluster like it’s a person. Click on one of the pre-built agents and ask it something profound like:

  • “What’s broken in my cluster?”

  • “Why are my pods crashing?”

  • “How do I get a raise?”

The agent will actually use real tools - kubectl, Helm, Prometheus queries - to investigate your cluster and give you answers with actual context . It’s like having a coworker who knows what they’re doing, but without the annoying small talk.

Let’s say you have a broken service. Instead of doing your usual “google-fu,” you can now ask Kagent:

You: “Hey, why is the payment service failing?”

Kagent: checks pod logs, examines service endpoints, runs diagnostics “The payment service is failing because you have a memory limit that’s too low and the JVM is getting OOMKilled. Also, Dave from engineering made a typo in the configmap last deployment. Typical Dave.”

You: “Can you fix it?”

Kagent: “I could, but do you really trust me that much? Also, you don’t have permissions for production changes because of ‘security reasons.’”

When your Kagent suggests skipping tests to fix the issue faster

Once you’ve mastered the basics of having AI do your job, you can dive into the really fancy stuff:

  • MCP Tools: The Model Context Protocol lets your agents connect to even more tools, because why stop at Kubernetes? They can now bother your Prometheus, Grafana, and ArgoCD instances too .

  • Custom Agents: Because the pre-built ones aren’t sufficiently specific to your niche problems. Create agents with custom system prompts like “You are a grumpy senior SRE who’s seen it all and has no patience for stupid questions.”

  • Enterprise Edition: For when you want to pay money to make the buttons shinier. Solo Enterprise for Kagent adds “advanced management features, observability tools, and multicluster federation support” - which is corporate-speak for “it costs more but does basically the same thing.”

Between the sarcasm and memes, Kagent is genuinely useful for:

  • Real troubleshooting of complex issues across multiple resources

  • Learning Kubernetes by asking “why” instead of just copying commands

  • Automating repetitive operations like checking cluster health or generating manifests

  • Documentation generation because nobody actually writes runbooks anymore

So there you have it - another tool to add to your already-overflowing DevOps toolkit. Kagent won’t replace your job (yet), but it might actually make you more effective at it. Or it might just create new and more interesting ways to break your cluster.

The real question is: when your Kagent eventually becomes sentient and takes over your job, will it be better at responding to pages at 3 AM? Probably. And honestly? Good for it.

Now if you’ll excuse me, I need to go ask my cluster permission to deploy something. The AI is reviewing my pull request.

Disclaimer: No Daves were harmed in the writing of this article. Any resemblance to actual engineers named Dave is purely coincidental.

i’m not sponsored by Kagent

No posts

Read the original on devopsguy.substack.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.