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.
curl -LO https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.33/k8sgpt_amd64.deb
dpkg -i k8sgpt_amd64.deb
Kubernetes can sends the cluster diagnostics to OpenAI API's, but it is paid so we can use Local LLM.
Install
k8sgpton cluster or on local machine but make sure that cluster should be accessible viakubectlcommand.
ollama pull qwen3:8b
ollama list
curl http://localhost:11434/api/generate -d '{
"model":"qwen3:8b",
"prompt":"What is CrashLoopBackOff?"
}'
k8sgpt auth add \
--backend localai \
--baseurl http://localhost:11434/v1 \
--model qwen3:8b
k8sgpt auth default --provider localai
k8sgpt auth list
k8sgpt analyze
k8sgpt analyze --explain
Reference : https://github.com/k8sgpt-ai/k8sgpt
KubeGPT Dashboard : https://github.com/prerana-puttaswamy/kubegpt-dashboard