k8s-inspector

k8s-inspector 2.0 ๐Ÿฆโ€โฌ›

The Intelligent Kubernetes Inspector
Not just monitoring โ€” understanding. Not just alerts โ€” answers. Not just problems โ€” solutions.

License: AGPLv3 GitHub stars Documentation

๐Ÿ“š Read the full documentation here


๐Ÿš€ Quick Start

One-Command Deploy (Helm)

helm repo add k8s-inspector https://charts.k8s-inspector.dev
helm install k8s-inspector k8s-inspector/k8s-inspector --namespace k8s-inspector --create-namespace
kubectl port-forward svc/k8s-inspector-frontend 3000:80 -n k8s-inspector

Local Development (Docker Compose)

git clone https://github.com/egkristi/k8s-inspector.git
cd k8s-inspector
docker-compose -f deploy/local/docker-compose.yml up -d

Access:


โœจ Killer Features

๐Ÿง  AI-Powered Root Cause Analysis

Not just โ€œPod is crashingโ€ โ€” but why, and how to fix it.

๐Ÿ’ฐ Intelligent Cost Optimization & GreenOps

Real savings recommendations, automated rightsizing (GitOps PRs), and eBPF-powered carbon/power tracking.

๐Ÿค– Agentic AI & ChatOps

Opt-in LLM integration to explain complex failures (OOMKilled, CrashLoops) or cost spikes in plain English.

๐Ÿ”ฎ Predictive Failure Detection

Fix problems before they happen with ML-powered anomaly detection.

๐Ÿ” Security Compliance

CIS benchmarks, NSA/CISA guidelines โ€” with one-click remediation.

๐ŸŒ Multi-Cluster Federated View

One dashboard, unlimited clusters.

๐ŸฅŠ k8s-inspector vs. Alternatives

The Kubernetes tooling ecosystem is fragmented. You usually need one tool for cost, one for security, and another for monitoring. k8s-inspector unifies them and adds automated remediation.

Capability ๐Ÿฆโ€โฌ› k8s-inspector Kubecost Datadog Robusta Lens / K9s
Cost & Waste Analysis โœ… Yes โœ… Yes โœ… Yes ($$) โŒ No โŒ No
GreenOps (Watt/CO2) โœ… Yes (eBPF) โŒ No โŒ No โŒ No โŒ No
Security Auditing โœ… Yes โŒ No โœ… Yes โŒ No โŒ No
Auto-Remediation โœ… Yes (Playbooks) โŒ No โŒ No โœ… Yes โŒ No
GitOps Auto-PRs โœ… Yes โŒ No โŒ No โŒ No โŒ No
Predictive ML โœ… Yes โŒ No โœ… Yes โŒ No โŒ No
Agentic AI Chat โœ… Yes (Opt-in) โŒ No โœ… Yes (SaaS) โœ… Yes โŒ No
Delivery Model Open Source (AGPLv3) Open Core SaaS Only Open Source Open Core

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚              k8s-inspector 2.0                  โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Next.js 14 Dashboard (WebSocket Real-time)    โ”‚
โ”‚         โ†“                                        โ”‚
โ”‚  FastAPI Backend (Async Python)                โ”‚
โ”‚         โ†“                                        โ”‚
โ”‚  PostgreSQL + TimescaleDB (Metrics)            โ”‚
โ”‚  Redis (Cache + Pub/Sub)                       โ”‚
โ”‚         โ†“                                        โ”‚
โ”‚  Kubernetes Clusters (N)                       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ“Š What Gets Inspected?

Cluster Health: Control plane, etcd, nodes, operators, certificates
Workloads: Pods, deployments, StatefulSets, restarts, resources
Cost: Compute, storage, network โ€” with optimization tips
Security: CIS benchmarks, pod security, network policies
Performance: Anomaly detection, predictions, capacity planning


๐Ÿ› ๏ธ Tech Stack

Component Technology
Frontend Next.js 14 + Tailwind + shadcn/ui
Backend FastAPI (Python async)
Database PostgreSQL + TimescaleDB
Cache Redis
ML scikit-learn + PyTorch
Deploy Helm + Docker

๐Ÿ“ˆ Roadmap


๐Ÿค Contributing

See CONTRIBUTING.md for guidelines.


๐Ÿ“„ License

k8s-inspector uses a dual-license model:

See LICENSING.md for full details, features, and terms.


**Made with โค๏ธ by [@egkristi](https://github.com/egkristi)** โญ Star this repo if you find it useful!