talira

Scan Kubernetes clusters, diagnose and triage issues in simple English

open sourceApache-2.0self-hostablefreeMCP

K8sGPT is an open source tool that scans Kubernetes clusters with built-in analyzers (pods, services, deployments, PVCs, ingresses, nodes, webhooks, HPAs, network policies, Gateway API and more) that codify SRE experience, then uses an AI backend to explain each problem and suggest a fix in plain English. It works with OpenAI, Azure OpenAI, Amazon Bedrock, Google Gemini and Vertex AI, Cohere, Hugging Face, watsonx and local models through Ollama or LocalAI, can anonymize object names before sending them, and caches results locally or in S3, Azure Blob or Google Cloud Storage. It runs as a CLI, as a server with a gRPC API and an MCP server for Claude Desktop and other agents (k8sgpt serve --mcp), or in-cluster through the K8sGPT Operator for continuous scanning alongside Prometheus and Alertmanager. Custom analyzers in any language plug in over a gRPC schema. K8sGPT is a CNCF Sandbox project (accepted 19 December 2023) and is Apache-2.0 licensed.

Ways to install

Problems it solves

  • scan my Kubernetes cluster and tell me in plain English what's broken and how to fix it
  • figure out why a deployment's pods won't start without reading pages of kubectl describe output
  • find misconfigured services, ingresses and PVCs across all namespaces in one command
  • explain cryptic Kubernetes errors with an LLM but hide our resource names from the AI provider
  • diagnose Kubernetes problems with a local model so no cluster data leaves our network
  • continuously scan a cluster from inside it and surface issues as Kubernetes resources
  • let Claude Desktop or another AI agent analyze my Kubernetes cluster through MCP
  • triage cluster issues for junior engineers who don't know Kubernetes well yet
  • write our own cluster checks in any language and include them in the AI analysis
  • get the official Kubernetes documentation for each problem found in my cluster
  • output Kubernetes health findings as JSON for automation
  • use Amazon Bedrock or Azure OpenAI to explain Kubernetes problems instead of OpenAI
  • an open source CNCF tool for AI-assisted Kubernetes troubleshooting

Features

  • built-in analyzers for pods, PVCs, ReplicaSets, services, events, ingresses, StatefulSets, deployments, jobs, CronJobs, nodes, webhooks and ConfigMaps
  • optional analyzers for HPAs, PDBs, network policies and Gateway API
  • AI explanations with --explain, and Kubernetes docs with --with-doc
  • AI backends: OpenAI, Azure OpenAI, Amazon Bedrock and SageMaker, Google Gemini and Vertex AI, Cohere, Hugging Face, watsonx, Ollama, LocalAI, LiteLLM and custom REST
  • anonymization of object names before sending to the AI backend
  • filters by resource type and namespace, JSON output
  • local cache or remote cache in S3, Azure Blob or Google Cloud Storage
  • serve mode with a gRPC API
  • MCP server over stdio or HTTP (k8sgpt serve --mcp)
  • custom analyzers in any language over a gRPC schema
View 2 more
  • integrations activated from the CLI
  • K8sGPT Operator for in-cluster continuous scanning

Limitations

  • Doesn't anonymize Kubernetes event messages: Pod and Events analyzer messages are sent to the AI backend unmasked3

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Has an MCP serverplan not known
Takes pluginsplan not known

Alternatives

The same job

These do what K8sGPT does.

  1. HolmesGPT Open source AI agent for investigating production incidents and finding root causes
  2. AURA Build trusted agents that production can rely on

Compare K8sGPT with the top 3