# junginho0901/kubeast architecture

> Architecture diagram of the GitHub repository junginho0901/kubeast, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/junginho0901/kubeast
- Repository: https://github.com/junginho0901/kubeast

## Overview

Kubeast is a multi-cluster Kubernetes operations platform with an embedded AI assistant. The main workflow is an operator selecting a cluster in the web console, browsing or managing resources, and optionally using AI chat to investigate or perform permission-gated actions. The graph also retains documented Helm, GPU/metrics, topology, identity/RBAC, audit, and model-configuration capabilities. Source excerpts are incomplete, so links between major services rely on README statements where noted; unsampled internal wiring is not inferred.

Main entry points: [`frontend/src/pages/Resources.tsx`](https://github.com/junginho0901/kubeast/blob/main/frontend/src/pages/Resources.tsx) (Resource Views), [`services/ai-service/app/api.py`](https://github.com/junginho0901/kubeast/blob/main/services/ai-service/app/api.py) (AI API), [`frontend/src/pages/AIChat.tsx`](https://github.com/junginho0901/kubeast/blob/main/frontend/src/pages/AIChat.tsx) (AI Chat UI), [`services/ai-service/app/services/ai_service.py`](https://github.com/junginho0901/kubeast/blob/main/services/ai-service/app/services/ai_service.py) (AI Orchestration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_console["Web Console"]
  node_console_app["Console App<br/>[App.tsx]"]
  node_cluster_context["Cluster Context"]
  node_resource_views["Resource Views<br/>[Resources.tsx]"]
  node_resource_details["Resource Details"]
  node_search["Advanced Search<br/>[AdvancedSearch.tsx]"]
  node_dashboard["Dashboard<br/>[Dashboard.tsx]"]
  node_ai_chat_ui["AI Chat UI<br/>[AIChat.tsx]"]
  node_floating_ai["Floating AI<br/>[index.tsx]"]
end

subgraph group_operations["Cluster Operations"]
  node_helm_ui["Helm Management<br/>[Releases.tsx]"]
  node_gpu_ui["GPU Monitoring<br/>[GPUDashboard.tsx]"]
  node_topology_ui["Topology Views<br/>[Topology.tsx]"]
  node_k8s_service["Kubernetes API<br/>[main.go]"]
  node_tool_server["AI Tool Server<br/>[main.go]"]
end

subgraph group_assistant["AI Assistant"]
  node_ai_api["AI API<br/>[api.py]"]
  node_ai_engine["AI Orchestration<br/>[ai_service.py]"]
  node_model_controller["Model Config Controller"]
end

subgraph group_identity["Identity Governance"]
  node_auth_service["Auth Service<br/>[main.go]"]
  node_session_service["Session Service<br/>[main.go]"]
  node_audit["Audit Sinks<br/>[webhook.go]"]
end

subgraph group_platform["Platform Services"]
  node_ai_database[("AI Data Store<br/>[database.py]")]
  node_session_repository[("Session Repository<br/>[repository.go]")]
end

node_operator(("Operator"))
node_kubernetes{{"Kubernetes Clusters"}}
node_llm_providers{{"LLM Providers"}}
node_prometheus[("Prometheus")]

node_operator -->|"uses"| node_console_app
node_console_app -.->|"selects cluster"| node_cluster_context
node_cluster_context -.->|"scopes browsing"| node_resource_views
node_operator -->|"browses resources"| node_resource_views
node_resource_views -.->|"opens details"| node_resource_details
node_operator -->|"searches resources"| node_search
node_operator -->|"monitors cluster"| node_dashboard
node_operator -->|"manages releases"| node_helm_ui
node_operator -->|"monitors GPU"| node_gpu_ui
node_operator -->|"views topology"| node_topology_ui
node_resource_views -.->|"requests resources"| node_k8s_service
node_helm_ui -.->|"manages Helm"| node_k8s_service
node_gpu_ui -.->|"requests cluster data"| node_k8s_service
node_operator -->|"chats"| node_ai_chat_ui
node_operator -->|"asks in context"| node_floating_ai
node_ai_chat_ui -->|"streams chat"| node_ai_api
node_floating_ai -->|"requests contextual help"| node_ai_api
node_ai_api -->|"dispatches AI work"| node_ai_engine
node_ai_engine -->|"calls tools"| node_tool_server
node_tool_server -->|"runs cluster tools"| node_kubernetes
node_ai_engine -->|"requests completions"| node_llm_providers
node_ai_api -->|"stores AI data"| node_ai_database
node_ai_chat_ui -->|"persists sessions"| node_session_service
node_session_service -->|"uses repository"| node_session_repository
node_operator -->|"authenticates and administers"| node_auth_service
node_auth_service -->|"emits audit events"| node_audit
node_model_controller -->|"manages ModelConfig CRD"| node_kubernetes
node_dashboard -.->|"queries metrics"| node_prometheus

click node_console_app "https://github.com/junginho0901/kubeast/blob/main/frontend/src/App.tsx"
click node_cluster_context "https://github.com/junginho0901/kubeast/blob/main/frontend/src/contexts/ClusterProvider.tsx"
click node_resource_views "https://github.com/junginho0901/kubeast/blob/main/frontend/src/pages/Resources.tsx"
click node_resource_details "https://github.com/junginho0901/kubeast/blob/main/frontend/src/components/ResourceDetailDrawer.tsx"
click node_search "https://github.com/junginho0901/kubeast/blob/main/frontend/src/pages/AdvancedSearch.tsx"
click node_dashboard "https://github.com/junginho0901/kubeast/blob/main/frontend/src/pages/Dashboard.tsx"
click node_ai_chat_ui "https://github.com/junginho0901/kubeast/blob/main/frontend/src/pages/AIChat.tsx"
click node_floating_ai "https://github.com/junginho0901/kubeast/blob/main/frontend/src/components/FloatingAIChat/index.tsx"
click node_helm_ui "https://github.com/junginho0901/kubeast/blob/main/frontend/src/pages/helm/Releases.tsx"
click node_gpu_ui "https://github.com/junginho0901/kubeast/blob/main/frontend/src/pages/gpu/GPUDashboard.tsx"
click node_topology_ui "https://github.com/junginho0901/kubeast/blob/main/frontend/src/pages/Topology.tsx"
click node_k8s_service "https://github.com/junginho0901/kubeast/blob/main/services/k8s-service-go/cmd/server/main.go"
click node_tool_server "https://github.com/junginho0901/kubeast/blob/main/services/tool-server/main.go"
click node_ai_api "https://github.com/junginho0901/kubeast/blob/main/services/ai-service/app/api.py"
click node_ai_engine "https://github.com/junginho0901/kubeast/blob/main/services/ai-service/app/services/ai_service.py"
click node_model_controller "https://github.com/junginho0901/kubeast/blob/main/services/model-config-controller-go/internal/controller/modelconfig_controller.go"
click node_auth_service "https://github.com/junginho0901/kubeast/blob/main/services/auth-service-go/cmd/server/main.go"
click node_session_service "https://github.com/junginho0901/kubeast/blob/main/services/session-service-go/cmd/server/main.go"
click node_audit "https://github.com/junginho0901/kubeast/blob/main/services/auth-service-go/internal/auditsink/webhook.go"
click node_ai_database "https://github.com/junginho0901/kubeast/blob/main/services/ai-service/app/database.py"
click node_session_repository "https://github.com/junginho0901/kubeast/blob/main/services/session-service-go/internal/repository/repository.go"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_console_app,node_cluster_context,node_resource_views,node_resource_details,node_search,node_dashboard,node_ai_chat_ui,node_floating_ai toneBlue
class node_helm_ui,node_gpu_ui,node_topology_ui,node_k8s_service,node_tool_server,node_prometheus toneAmber
class node_ai_api,node_ai_engine,node_model_controller toneMint
class node_auth_service,node_session_service,node_audit toneRose
class node_ai_database,node_session_repository,node_operator,node_kubernetes,node_llm_providers toneIndigo
```

## Components

### Web Console

- [Console App](https://github.com/junginho0901/kubeast/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Cluster Context](https://github.com/junginho0901/kubeast/blob/main/frontend/src/contexts/ClusterProvider.tsx): `frontend/src/contexts/ClusterProvider.tsx`
- [Resource Views](https://github.com/junginho0901/kubeast/blob/main/frontend/src/pages/Resources.tsx): `frontend/src/pages/Resources.tsx`
- [Resource Details](https://github.com/junginho0901/kubeast/blob/main/frontend/src/components/ResourceDetailDrawer.tsx): `frontend/src/components/ResourceDetailDrawer.tsx`
- [Advanced Search](https://github.com/junginho0901/kubeast/blob/main/frontend/src/pages/AdvancedSearch.tsx): `frontend/src/pages/AdvancedSearch.tsx`
- [Dashboard](https://github.com/junginho0901/kubeast/blob/main/frontend/src/pages/Dashboard.tsx): `frontend/src/pages/Dashboard.tsx`
- [AI Chat UI](https://github.com/junginho0901/kubeast/blob/main/frontend/src/pages/AIChat.tsx): `frontend/src/pages/AIChat.tsx`
- [Floating AI](https://github.com/junginho0901/kubeast/blob/main/frontend/src/components/FloatingAIChat/index.tsx): `frontend/src/components/FloatingAIChat/index.tsx`

### Cluster Operations

- [Helm Management](https://github.com/junginho0901/kubeast/blob/main/frontend/src/pages/helm/Releases.tsx): `frontend/src/pages/helm/Releases.tsx`
- [GPU Monitoring](https://github.com/junginho0901/kubeast/blob/main/frontend/src/pages/gpu/GPUDashboard.tsx): `frontend/src/pages/gpu/GPUDashboard.tsx`
- [Topology Views](https://github.com/junginho0901/kubeast/blob/main/frontend/src/pages/Topology.tsx): `frontend/src/pages/Topology.tsx`
- [Kubernetes API](https://github.com/junginho0901/kubeast/blob/main/services/k8s-service-go/cmd/server/main.go): `services/k8s-service-go/cmd/server/main.go`
- [AI Tool Server](https://github.com/junginho0901/kubeast/blob/main/services/tool-server/main.go): `services/tool-server/main.go`

### AI Assistant

- [AI API](https://github.com/junginho0901/kubeast/blob/main/services/ai-service/app/api.py): `services/ai-service/app/api.py`
- [AI Orchestration](https://github.com/junginho0901/kubeast/blob/main/services/ai-service/app/services/ai_service.py): `services/ai-service/app/services/ai_service.py`
- [Model Config Controller](https://github.com/junginho0901/kubeast/blob/main/services/model-config-controller-go/internal/controller/modelconfig_controller.go): `services/model-config-controller-go/internal/controller/modelconfig_controller.go`

### Identity Governance

- [Auth Service](https://github.com/junginho0901/kubeast/blob/main/services/auth-service-go/cmd/server/main.go): `services/auth-service-go/cmd/server/main.go`
- [Session Service](https://github.com/junginho0901/kubeast/blob/main/services/session-service-go/cmd/server/main.go): `services/session-service-go/cmd/server/main.go`
- [Audit Sinks](https://github.com/junginho0901/kubeast/blob/main/services/auth-service-go/internal/auditsink/webhook.go): `services/auth-service-go/internal/auditsink/webhook.go`

### Platform Services

- [AI Data Store](https://github.com/junginho0901/kubeast/blob/main/services/ai-service/app/database.py): `services/ai-service/app/database.py`
- [Session Repository](https://github.com/junginho0901/kubeast/blob/main/services/session-service-go/internal/repository/repository.go): `services/session-service-go/internal/repository/repository.go`

### Other components

- **Operator**
- **Kubernetes Clusters**
- **LLM Providers**
- **Prometheus**

## Connections

- Operator → Console App: uses (evidence: `README.md`)
- Console App → Cluster Context: selects cluster
- Cluster Context → Resource Views: scopes browsing
- Operator → Resource Views: browses resources (evidence: `README.md`)
- Resource Views → Resource Details: opens details
- Operator → Advanced Search: searches resources (evidence: `README.md`)
- Operator → Dashboard: monitors cluster (evidence: `README.md`)
- Operator → Helm Management: manages releases (evidence: `README.md`)
- Operator → GPU Monitoring: monitors GPU (evidence: `README.md`)
- Operator → Topology Views: views topology (evidence: `README.md`)
- Resource Views → Kubernetes API: requests resources
- Helm Management → Kubernetes API: manages Helm
- GPU Monitoring → Kubernetes API: requests cluster data
- Operator → AI Chat UI: chats (evidence: `README.md`)
- Operator → Floating AI: asks in context (evidence: `README.md`)
- AI Chat UI → AI API: streams chat (evidence: `README.md`)
- Floating AI → AI API: requests contextual help (evidence: `README.md`)
- AI API → AI Orchestration: dispatches AI work (evidence: `services/ai-service/app/api.py`)
- AI Orchestration → AI Tool Server: calls tools (evidence: `services/ai-service/app/services/ai_service.py`)
- AI Tool Server → Kubernetes Clusters: runs cluster tools (evidence: `README.md`)
- AI Orchestration → LLM Providers: requests completions (evidence: `README.md`)
- AI API → AI Data Store: stores AI data (evidence: `services/ai-service/app/api.py`)
- AI Chat UI → Session Service: persists sessions (evidence: `README.md`)
- Session Service → Session Repository: uses repository (evidence: `services/session-service-go/cmd/server/main.go`)
- Operator → Auth Service: authenticates and administers (evidence: `README.md`)
- Auth Service → Audit Sinks: emits audit events (evidence: `services/auth-service-go/cmd/server/main.go`)
- Model Config Controller → Kubernetes Clusters: manages ModelConfig CRD (evidence: `README.md`)
- Dashboard → Prometheus: queries metrics
