How parth237/kubesentry-ai works
KubeSentry AI is a Kubernetes incident triage dashboard. A user selects a scenario in the web UI, which requests an investigation from the FastAPI backend; the backend gathers evidence, generates a diagnosis and remediation advice, records a history entry, and returns a report for display. The README also describes live-cluster inspection and a four-stage diagnostic pipeline; the sampled implementation exposes a live-cluster probe, but the investigation endpoint currently uses sandbox scenarios. The graph reflects that distinction and does not imply live data flows through the endpoint.
Main entry points: main.py FastAPI endpoints · app.js Dashboard UI · k8s_investigator.py Sandbox evidence · mock_data.py Scenario catalog
Components 9
Dashboard
- Dashboard UI
static/app.js
API orchestration
- FastAPI endpoints
main.py - Incident history
main.py
Evidence and diagnosis
- Scenario catalog
app/mock_data.py - Sandbox evidence
app/k8s_investigator.py - Live cluster probe
app/k8s_investigator.py - SRE diagnosis
app/ai_sre_agent.py
Other components
- SRE operator
- Kubernetes cluster
Connections 11
- SRE operator → Dashboard UI: uses
README.md - Dashboard UI → FastAPI endpoints: requests scenarios
static/app.js - Dashboard UI → FastAPI endpoints: submits investigation
static/app.js - Dashboard UI → FastAPI endpoints: requests history
static/app.js - FastAPI endpoints → Dashboard UI: returns report
main.py - FastAPI endpoints → Dashboard UI: returns history
main.py - FastAPI endpoints → Sandbox evidence: collects evidence
main.py - Sandbox evidence → Scenario catalog: reads scenarios
app/k8s_investigator.py - FastAPI endpoints → SRE diagnosis: requests diagnosis
main.py - FastAPI endpoints → Incident history: records incident
main.py - Live cluster probe → Kubernetes cluster: queries pods
app/k8s_investigator.py