Prashant Lakhera
2 min readMar 14, 2024

🤖 When Kubernetes meets k8sgpt 🤖

🗓️ You won’t find a day where people aren’t talking or posting about Artificial Intelligence (AI), especially chat models like GPT. It’s a topic that surfaces everywhere and all the time!

🚂Jumping on the bandwagon, today I’ll discuss the tool k8sgpt, as described on its official page: ‘k8sgpt is a tool for scanning your Kubernetes clusters, diagnosing, and triaging issues in simple English. It has SRE experience codified into its analyzers and helps to pull out the most relevant information to enrich it with AI.’ https://k8sgpt.ai/

Here’s my take:
✅ k8sgpt effectively explains issues, at least the basic ones.
❌ If you’re expecting k8sgpt to fix an issue for you, you should know that it’s not going to happen, at least for now.

✅ k8sgpt has an operator that can analyze and explain issues for you: https://lnkd.in/g5ajjxap
❌ The documentation still needs significant improvement.
❌ Only supports a handful of Kubernetes resources.
❌ Only supports one integration with trivy.

⌨️ Command that I ran: https://lnkd.in/gnDdK5ku

✅ GitHub repository for testing: https://lnkd.in/gbNENJ98

📚 Blog I followed: https://lnkd.in/gqd-AUGi

🎥 Last but not least, a shoutout to Viktor Farcic’s videos. https://lnkd.in/gHj8EWvM

🎬 The project is just starting out, and since it’s open-source, anyone can help improve it. This means there’s a lot of room to make it better. I believe that, as time goes on, it will definitely improve.

📚 If you’re interested in more in-depth explanation of these topics, please check out my new book “Cracking the DevOps Interview”
https://pratimuniyal.gumroad.com/l/cracking-the-devops-interview

Prashant Lakhera

AWS Community Builder, Ex-Redhat, Author, Blogger, YouTuber, RHCA, RHCDS, RHCE, Docker Certified,4XAWS, CCNA, MCP, Certified Jenkins, Terraform Certified, 1XGCP