How cherukuri-devsecops/kubernetes-dashboard works
This is a Kubernetes observability and operations dashboard. A signed-in user enters the protected React dashboard, selects a domain view, and receives live cluster or telemetry data through FastAPI; reports and the assistant assemble answers from those sources. The product also supports incident tracking, notifications, RBAC exploration, and an interactive pod terminal. The README documents several live-data integrations whose route implementations were not sampled; those documented relationships are shown, while unverified internal call details are omitted.
Main entry points: main.py FastAPI app · kubernetes/client.py Kubernetes client · prometheus/client.py Prometheus client · router.py Report routes
Components 34
Dashboard UI
- App routing
frontend/src/App.tsx - Domain pages
frontend/src/pages - API client
frontend/src/api/client.ts
Backend API
- FastAPI app
backend/app/main.py - Auth routes
backend/app/api/auth/router.py - Kubernetes routes
backend/app/api/kubernetes/router.py - Metrics routes
backend/app/api/metrics/router.py - Log routes
backend/app/api/logs/router.py - Event routes
backend/app/api/events/router.py - Alert routes
backend/app/api/alerts/router.py - Trace routes
backend/app/api/traces/router.py - Report routes
backend/app/api/reports/router.py - Search routes
backend/app/api/search/router.py - Incident routes
backend/app/api/incidents/router.py - Pod exec routes
backend/app/api/exec/router.py - Assistant routes
backend/app/api/ai/router.py
Domain Services
- Kubernetes client
backend/app/services/kubernetes/client.py - Prometheus client
backend/app/services/prometheus/client.py - Loki client
backend/app/services/loki/client.py - Tempo client
backend/app/services/tempo/client.py - Report generator
backend/app/services/reports/generator.py - Assistant analyst
backend/app/services/ai/analyst.py - Incident repository
backend/app/services/postgres/incidents.py
Identity and State
- Token security
backend/app/auth/security.py - Redis cache
backend/app/services/redis/client.py - PostgreSQL client
backend/app/services/postgres/client.py
Other components
- Dashboard user
- Kubernetes API
- Prometheus
- Loki
- Tempo
- PostgreSQL
- Redis
- Auth provider
Connections 43
- Dashboard user → App routing: uses
frontend/src/App.tsx - App routing → Domain pages: routes to
frontend/src/App.tsx - Domain pages → API client: requests data
- API client → FastAPI app: calls API
README.md - FastAPI app → Auth routes: registers
backend/app/main.py - FastAPI app → Kubernetes routes: registers
backend/app/main.py - FastAPI app → Metrics routes: registers
backend/app/main.py - FastAPI app → Log routes: registers
backend/app/main.py - FastAPI app → Event routes: registers
backend/app/main.py - FastAPI app → Alert routes: registers
backend/app/main.py - FastAPI app → Trace routes: registers
backend/app/main.py - FastAPI app → Report routes: registers
backend/app/main.py - FastAPI app → Search routes: registers
backend/app/main.py - FastAPI app → Incident routes: registers
backend/app/main.py - FastAPI app → Pod exec routes: registers
backend/app/main.py - FastAPI app → Assistant routes: registers
backend/app/main.py - Auth routes → Token security: authenticates
backend/app/api/auth/router.py - Token security → Redis cache: caches verification
backend/app/auth/security.py - Redis cache → Redis: reads and writes
backend/app/services/redis/client.py - Token security → Auth provider: verifies tokens
backend/app/auth/security.py - Kubernetes routes → Kubernetes client: queries cluster
backend/app/api/kubernetes/router.py - Pod exec routes → Kubernetes client: opens pod shell
backend/app/api/exec/router.py - Kubernetes client → Kubernetes API: reads cluster
README.md - Metrics routes → Prometheus client: queries metrics
backend/app/api/metrics/router.py - Prometheus client → Prometheus: queries
README.md - Log routes → Loki client: searches logs
backend/app/api/logs/router.py - Log routes → Kubernetes client: tails pod logs
backend/app/api/logs/router.py - Loki client → Loki: queries
README.md - Event routes → Kubernetes client: reads events
README.md - Alert routes → Prometheus client: reads alerts
README.md - Trace routes → Tempo client: queries traces
README.md - Tempo client → Tempo: queries
README.md - Report routes → Report generator: generates reports
backend/app/api/reports/router.py - Report routes → Kubernetes client: reads cluster
backend/app/api/reports/router.py - Report routes → Prometheus client: queries metrics
backend/app/api/reports/router.py - Search routes → Kubernetes client: searches resources
backend/app/api/search/router.py - Incident routes → Incident repository: manages incidents
backend/app/api/incidents/router.py - Incident repository → PostgreSQL client: uses database
- PostgreSQL client → PostgreSQL: reads and writes
backend/app/services/postgres/client.py - Assistant routes → Assistant analyst: answers questions
README.md - Assistant analyst → Kubernetes client: queries sources
README.md - Assistant analyst → Prometheus client: queries sources
README.md - Assistant analyst → Loki client: queries sources
README.md