This article was co-authored with Shankar Ganeshan.When you’re setting up a Kubernetes cluster, DevOps and Platform engineers feel like they’re navigating a maze. Take a simple service deployment: you might have to check the deployment (
kubectl get deployment), the service (kubectl get service), inspect events (kubectl describe pod), the logs (kubectl logs pod-name), and even Ingress rules (kubectl get ingress). Each step requires context, copy-pasting names and ids from one place into another. A single typo can leave you scratching your head. Worse, incomplete information can lead you down the wrong path and waste hours. The complexity of multi-step diagnostics, especially when things go wrong, can be overwhelming.
Why Kubernetes troubleshooting still hurts and why we built k8x.
Even veteran SREs know the familiar pain cycle:
Each scenario is multi-step, context-heavy, and needs you to track context across multiple kubernetes commands.
You need to keep a note of resource ids to use them in other resource descriptions and logs to know what’s going on.
The agentic leap: from suggestion to orchestrated review
Recent agents like GitHub Copilot Chat (in VS Code w/ terminal access), Claude Code (terminal-native edits) and Goose showed a new pattern: the LLM drives an interactive loop—executes safe commands autonomously, then narrates the findings. General-purpose LLM helpers (ChatGPT, Claude, Copilot Chat) can go beyond suggesting commands - they can copy-paste, re-run, and stitch results together. k8x applies this agentic idea to Kubernetes:- Natural-language prompts → e.g. “Find pods that aren’t ready and tell me why.”
- The agent plans a sequence:
kubectl get …,kubectl describe …, maybekubectl top …. - It executes those read-only commands, parses output, and reasons about root causes.
- Results appear as an explanation first, with raw command logs one keystroke away.
Design choices that matter to operators
k8x works in your console with the your current kubectl configuration, to perform autonomous, multi-step workflows to detect and troubleshoot kubernetes issues with your credentials.
There’s more to come, including write permissions, parallelism, etc. Conrtributions are welcome.
A day in the life with k8x
How a multi-step review actually works
- Intent parsing - Translates English prompts into an internal diagnostic goal.
- Planning - LLM selects a safe chain of read-only
kubectlqueries. - Adaptive execution - After each command, it decides if deeper queries are needed.
- Reasoning & templated explanations - Maps results to known issue patterns for a deterministic, auditable summary.
Where k8x stands in the AI-ops landscape
k8x fills the gap for platform and DevOps engineers looking for Copilot-level assistance after deployment, not just in CI/CD.
Getting started in 60 seconds
Open Source
k8x is Apache 2.0-licensed and available on GitHub. We’re looking for contributors to help build out the next features, including:- v0.2 - Declarative fixes
- Generate a patch plan (
kubectl diff) and let humans--approve.
- Generate a patch plan (
- Support ArgoCD and other k8s tools
- Integrate with ArgoCD for GitOps workflows.
- Use
kubectl applyto update resources based on agent suggestions.
- Terraform & cloud-CLI mode
- Run
terraform planoraws eks update-kubeconfigas sub-steps.
- Run
- Cluster runbooks as code
- Store successful sessions as YAML recipes to auto-trigger on alerts.
Final thoughts
Generative-AI agents are moving from IDEs into production infrastructure. By combining LLM planning, policy-guarded execution, and domain-specific reasoning, k8x transforms Kubernetes troubleshooting from a scavenger hunt into a guided review. Start with read-only diagnostics today; when you’re ready, the agent will apply fixes—one audited pull request at a time.Share on LinkedIn
Share this article with your network
Share on X
Tweet this article to your followers
Schedule a Chat
Let’s discuss AI and potential opportunities
About Elevate.do
Learn more about our work in AI infrastructure and workplace transformation
Follow on LinkedIn
Connect with me for more insights on AI
Follow on X
Follow for real-time thoughts on AI agents and infrastructure