K8sGPT is an open-source CLI and Kubernetes Operator that runs targeted analyzers across cluster resources and uses a connected LLM to explain failures in plain English. Built-in analyzers cover pods, services, deployments, replicasets, statefulsets, ingresses, and Kubernetes events. Each analyzer fetches relevant resource state and passes a structured prompt to the configured AI backend.
Supported backends: OpenAI, Azure OpenAI, AWS Bedrock, Google Gemini, Ollama (local models), and others via provider plugin. Operator mode runs analyzers continuously inside the cluster, surfacing findings as Kubernetes custom resources for integration with monitoring pipelines. The MCP server exposes analyzers as tools for AI coding agents.
Experimental auto-remediation patches a narrow set of resource types. CNCF Sandbox project under Apache 2.0.