How notharshhaa/kubernetes-dashboard works
Kubernetes Dashboard is a browser-based cluster command center. Users select a cluster context, inspect health and workload or resource views, then perform operational tasks such as scaling, reviewing logs, or opening a container terminal. The app exposes Next.js API routes that use Kubernetes configuration and clients, with demo data or an in-memory store available when a real cluster is unavailable. The README documents additional areas whose route implementations were not sampled; those capabilities are represented, but their internal call paths are not asserted.
Main entry points: dashboard-layout.tsx Dashboard shell · k8s-client.ts Kubernetes contexts · actions/route.ts Mutation actions · workloads/route.ts Workload APIs
Components 21
Dashboard experience
- Dashboard shell
src/components/dashboard-layout.tsx - Cluster overview
src/app/page.tsx - Workload management
src/app/workloads/page.tsx - Resource views
src/app - AI workloads
src/app/ai-workloads/page.tsx - Topology map
src/app/topology/page.tsx - Web terminal
src/app/terminal/page.tsx - Security audits
src/app/security/page.tsx - Helm management
src/app/helm/page.tsx
Cluster operations
- Resource APIs
src/app/api/resources/route.ts - Workload APIs
src/app/api/workloads/route.ts - Mutation actions
src/app/api/actions/route.ts - Autoscaling API
src/app/api/autoscaling/route.ts - GPU workload API
src/app/api/ai-workloads/route.ts - Specialized APIs
src/app/api
Cluster access and state
- API client
src/lib/api-client.ts - Kubernetes contexts
src/lib/k8s-client.ts - Demo state store
src/lib/k8s-store.ts
Telemetry and insights
- Metrics client
src/lib/metrics-client.ts - Realtime hooks
src/hooks
Other components
- Platform engineer
Connections 20
- Platform engineer → Dashboard shell: uses
README.md - Dashboard shell → Cluster overview: opens views
README.md - Dashboard shell → Workload management: opens views
README.md - Dashboard shell → Resource views: opens views
README.md - Dashboard shell → AI workloads: opens views
README.md - Dashboard shell → Topology map: opens views
README.md - Dashboard shell → Web terminal: opens views
README.md - Workload management → Mutation actions: mutates through
- API client → Autoscaling API: requests
src/lib/api-client.ts - API client → GPU workload API: requests
src/lib/api-client.ts - Workload APIs → Demo state store: reads demo state
src/app/api/workloads/route.ts - Workload APIs → Kubernetes contexts: connects to cluster
- Mutation actions → Demo state store: applies demo actions
src/app/api/actions/route.ts - Mutation actions → Kubernetes contexts: mutates cluster
- Autoscaling API → Kubernetes contexts: loads context
src/app/api/autoscaling/route.ts - GPU workload API → Kubernetes contexts: loads context
src/app/api/ai-workloads/route.ts - Resource APIs → Kubernetes contexts: queries cluster
src/app/api/resources/route.ts - Realtime hooks → Metrics client: subscribes to metrics
src/hooks/use-real-time-metrics.ts - Security audits → Specialized APIs: uses security data
- Helm management → Specialized APIs: manages releases