Skip to main content
Welcome to this lesson on K8sGPT, a CNCF Sandbox project that brings AI-driven diagnostics and remediation to your Kubernetes clusters. Developed by Alex Jones and his team, K8sGPT is fully open source and available as either a Kubernetes operator or a standalone binary. It connects to your live cluster, gathers resource state across Deployments, Services, ReplicaSets, and more, then leverages AI to pinpoint issues and recommend fixes.

Key Features

The image lists five key features: Cluster Scanning, Issue Diagnosis, Plain English Explanation, Actionable Advice, and Anonymization. There is also a person speaking in the bottom right corner.

Supported AI Backends

K8sGPT integrates seamlessly with major AI providers. You can choose from:
The image lists supported AI backends, including OpenAI, Azure OpenAI, LocalAI, Cohere, Amazon Bedrock, and Gemini, with a person speaking in the bottom right corner.
Before running the analysis, verify your kubeconfig and context by running kubectl get nodes.
Ensure you have network access to both your cluster and the configured AI backend.

Quickstart: Cluster Analysis

After configuring your preferred AI provider, simply run:
This output demonstrates how K8sGPT scans your cluster, identifies common issues across Deployments, Services, and ReplicaSets, and provides clear, actionable remediation steps. You will also see a live demo and hands-on lab with K8sGPT in the next module.

Watch Video