k8sgpt-ai/k8sgpt-operator

Automatic SRE Superpowers within your Kubernetes cluster

What it solves

K8sGPT Operator simplifies the deployment and management of K8sGPT within Kubernetes clusters. It automates the process of cluster analysis and troubleshooting, transforming manual log diving and debugging into an AI-driven process that can identify and explain errors in plain language.

How it works

The operator uses a Custom Resource (CR) to define the behavior and scope of K8sGPT workloads. It integrates with various AI backends (such as OpenAI, AzureOpenAI, Amazon Bedrock, and LocalAI) to analyze cluster issues. It can monitor a single cluster or multiple remote clusters via kubeconfig files.

Notably, it features an alpha "Auto-remediation" capability that can automatically repair specific Kubernetes workload image failures (like ImagePullBackOff) by calculating a semantic JSON patch and applying it to the owning workload, subject to a safety gate that prevents the LLM from having direct write authority.

Who it’s for

Cluster administrators, Platform Engineers, and DevOps teams who want to automate Kubernetes troubleshooting and error analysis across one or multiple clusters.

Highlights

  • Auto-remediation: Opt-in ability to automatically fix image pull failures with a safety-gated process.
  • Multi-cluster Monitoring: Ability to monitor remote clusters from a single management cluster using kubeconfig secrets.
  • Flexible AI Backends: Support for multiple providers including OpenAI, Azure, AWS Bedrock, and local LLMs via LocalAI.
  • Customizable Analysis: Configurable analysis intervals and filters to specify which Kubernetes resource types (e.g., Pods, Services, Ingress) are analyzed.
  • Distributed Caching: Support for remote caching via Interplex, Azure Blob storage, or S3 to optimize AI requests.

Related

  • Project
  • Project
  • Project
  • Project
  • Project