# hareeshgt/kubedock architecture

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

- Interactive diagram: https://gitdiagram.com/hareeshgt/kubedock
- Repository: https://github.com/hareeshgt/kubedock

## Overview

KubeDock is a desktop infrastructure workspace. Users connect to cloud or other remote systems, then manage files and terminals; Kubernetes views and operations provide a separate cluster workflow. The app also offers AI assistance and an embedded mobile Web App that reuses its managed SSH session. The graph keeps the desktop, remote-access, Kubernetes, and auxiliary service paths distinct. Some subsystem details are documented in the README but unsampled; those links are cited to the README rather than presented as inspected implementation.

Main entry points: [`main_window_parts/ui.py`](https://github.com/hareeshgt/kubedock/blob/main/main_window_parts/ui.py) (Main window), [`main_window_parts/file_manager.py`](https://github.com/hareeshgt/kubedock/blob/main/main_window_parts/file_manager.py) (Remote file manager), [`kubernetes_tab_parts/ui.py`](https://github.com/hareeshgt/kubedock/blob/main/kubernetes_tab_parts/ui.py) (Kubernetes interface), [`settings_dialog.py`](https://github.com/hareeshgt/kubedock/blob/main/settings_dialog.py) (Settings and security)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop workspace"]
  node_entry["Desktop startup<br/>[main.py]"]
  node_workspace["Main window<br/>[ui.py]"]
  node_dashboard["Infrastructure dashboard<br/>[dashboard_tab.py]"]
end

subgraph group_remote["Remote access"]
  node_filemgr["Remote file manager<br/>[file_manager.py]"]
  node_dialogs["File and operation dialogs<br/>[file_editor.py]"]
  node_terminal["SSH terminal<br/>[terminal_widget.py]"]
  node_workers["Background workers<br/>[workers.py]"]
  node_ssh["Managed SSH sessions<br/>[ssh.py]"]
  node_ftp["FTP filesystem<br/>[ftp_fs.py]"]
  node_sudo["Privileged filesystem<br/>[sudo_fs.py]"]
end

subgraph group_kubernetes["Kubernetes operations"]
  node_kubeui["Kubernetes interface<br/>[ui.py]"]
  node_resources["Cluster resources<br/>[resources.py]"]
  node_workloads["Workload operations<br/>[workloads.py]"]
  node_tunnels["Cluster tunnels<br/>[tunnels.py]"]
end

subgraph group_assist["AI and Web App"]
  node_opsai["Kubernetes AI operations<br/>[core.py]"]
  node_ai["AI assistance<br/>[ai_assist.py]"]
  node_webapp["Embedded Web App<br/>[server.py]"]
end

subgraph group_platform["Shared services"]
  node_settings["Settings and security<br/>[settings_dialog.py]"]
  node_db[("Application settings store<br/>[db.py]")]
  node_themes["Themes and icons<br/>[themes.py]"]
end

node_engineer(("Operator"))

node_engineer -->|"starts"| node_entry
node_entry -->|"opens"| node_workspace
node_workspace -->|"provides view"| node_dashboard
node_workspace -->|"provides view"| node_filemgr
node_workspace -->|"provides view"| node_kubeui
node_filemgr -->|"dispatches work"| node_workers
node_filemgr -->|"opens editor"| node_dialogs
node_filemgr -->|"uses filesystem"| node_ftp
node_filemgr -->|"uses privileges"| node_sudo
node_workers -->|"uses sessions"| node_ssh
node_workspace -.->|"provides terminal"| node_terminal
node_kubeui -->|"shows resources"| node_resources
node_kubeui -->|"shows workloads"| node_workloads
node_kubeui -->|"offers tunnels"| node_tunnels
node_opsai -->|"requests assistance"| node_ai
node_entry -->|"starts service"| node_webapp
node_webapp -->|"executes through"| node_ssh
node_settings -->|"configures"| node_webapp
node_settings -->|"configures"| node_ai
node_settings -.->|"stores settings"| node_db
node_themes -->|"loads preferences"| node_db
node_workspace -.->|"applies styling"| node_themes

click node_entry "https://github.com/hareeshgt/kubedock/blob/main/main.py"
click node_workspace "https://github.com/hareeshgt/kubedock/blob/main/main_window_parts/ui.py"
click node_dashboard "https://github.com/hareeshgt/kubedock/blob/main/dashboard_tab.py"
click node_filemgr "https://github.com/hareeshgt/kubedock/blob/main/main_window_parts/file_manager.py"
click node_dialogs "https://github.com/hareeshgt/kubedock/blob/main/dialogs_parts/file_editor.py"
click node_terminal "https://github.com/hareeshgt/kubedock/blob/main/terminal_widget.py"
click node_workers "https://github.com/hareeshgt/kubedock/blob/main/workers.py"
click node_ssh "https://github.com/hareeshgt/kubedock/blob/main/workers_parts/ssh.py"
click node_ftp "https://github.com/hareeshgt/kubedock/blob/main/ftp_fs.py"
click node_sudo "https://github.com/hareeshgt/kubedock/blob/main/sudo_fs.py"
click node_kubeui "https://github.com/hareeshgt/kubedock/blob/main/kubernetes_tab_parts/ui.py"
click node_resources "https://github.com/hareeshgt/kubedock/blob/main/kubernetes_tab_parts/resources.py"
click node_workloads "https://github.com/hareeshgt/kubedock/blob/main/kubernetes_tab_parts/workloads.py"
click node_tunnels "https://github.com/hareeshgt/kubedock/blob/main/kubernetes_tab_parts/tunnels.py"
click node_opsai "https://github.com/hareeshgt/kubedock/blob/main/k8s_ai_ops_parts/core.py"
click node_ai "https://github.com/hareeshgt/kubedock/blob/main/ai_assist.py"
click node_webapp "https://github.com/hareeshgt/kubedock/blob/main/webapp/server.py"
click node_settings "https://github.com/hareeshgt/kubedock/blob/main/settings_dialog.py"
click node_db "https://github.com/hareeshgt/kubedock/blob/main/db.py"
click node_themes "https://github.com/hareeshgt/kubedock/blob/main/themes.py"

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_entry,node_workspace,node_dashboard toneBlue
class node_filemgr,node_dialogs,node_terminal,node_workers,node_ssh,node_ftp,node_sudo toneAmber
class node_kubeui,node_resources,node_workloads,node_tunnels toneMint
class node_opsai,node_ai,node_webapp toneRose
class node_settings,node_db,node_themes,node_engineer toneIndigo
```

## Components

### Desktop workspace

- [Desktop startup](https://github.com/hareeshgt/kubedock/blob/main/main.py): `main.py`
- [Main window](https://github.com/hareeshgt/kubedock/blob/main/main_window_parts/ui.py): `main_window_parts/ui.py`
- [Infrastructure dashboard](https://github.com/hareeshgt/kubedock/blob/main/dashboard_tab.py): `dashboard_tab.py`

### Remote access

- [Remote file manager](https://github.com/hareeshgt/kubedock/blob/main/main_window_parts/file_manager.py): `main_window_parts/file_manager.py`
- [File and operation dialogs](https://github.com/hareeshgt/kubedock/blob/main/dialogs_parts/file_editor.py): `dialogs_parts/file_editor.py`
- [SSH terminal](https://github.com/hareeshgt/kubedock/blob/main/terminal_widget.py): `terminal_widget.py`
- [Background workers](https://github.com/hareeshgt/kubedock/blob/main/workers.py): `workers.py`
- [Managed SSH sessions](https://github.com/hareeshgt/kubedock/blob/main/workers_parts/ssh.py): `workers_parts/ssh.py`
- [FTP filesystem](https://github.com/hareeshgt/kubedock/blob/main/ftp_fs.py): `ftp_fs.py`
- [Privileged filesystem](https://github.com/hareeshgt/kubedock/blob/main/sudo_fs.py): `sudo_fs.py`

### Kubernetes operations

- [Kubernetes interface](https://github.com/hareeshgt/kubedock/blob/main/kubernetes_tab_parts/ui.py): `kubernetes_tab_parts/ui.py`
- [Cluster resources](https://github.com/hareeshgt/kubedock/blob/main/kubernetes_tab_parts/resources.py): `kubernetes_tab_parts/resources.py`
- [Workload operations](https://github.com/hareeshgt/kubedock/blob/main/kubernetes_tab_parts/workloads.py): `kubernetes_tab_parts/workloads.py`
- [Cluster tunnels](https://github.com/hareeshgt/kubedock/blob/main/kubernetes_tab_parts/tunnels.py): `kubernetes_tab_parts/tunnels.py`

### AI and Web App

- [Kubernetes AI operations](https://github.com/hareeshgt/kubedock/blob/main/k8s_ai_ops_parts/core.py): `k8s_ai_ops_parts/core.py`
- [AI assistance](https://github.com/hareeshgt/kubedock/blob/main/ai_assist.py): `ai_assist.py`
- [Embedded Web App](https://github.com/hareeshgt/kubedock/blob/main/webapp/server.py): `webapp/server.py`

### Shared services

- [Settings and security](https://github.com/hareeshgt/kubedock/blob/main/settings_dialog.py): `settings_dialog.py`
- [Application settings store](https://github.com/hareeshgt/kubedock/blob/main/db.py): `db.py`
- [Themes and icons](https://github.com/hareeshgt/kubedock/blob/main/themes.py): `themes.py`

### Other components

- **Operator**

## Connections

- Operator → Desktop startup: starts
- Desktop startup → Main window: opens (evidence: `main.py`)
- Main window → Infrastructure dashboard: provides view (evidence: `main_window_parts/ui.py`)
- Main window → Remote file manager: provides view (evidence: `main_window_parts/ui.py`)
- Main window → Kubernetes interface: provides view (evidence: `main_window_parts/ui.py`)
- Remote file manager → Background workers: dispatches work (evidence: `main_window_parts/file_manager.py`)
- Remote file manager → File and operation dialogs: opens editor (evidence: `main_window_parts/file_manager.py`)
- Remote file manager → FTP filesystem: uses filesystem (evidence: `main_window_parts/file_manager.py`)
- Remote file manager → Privileged filesystem: uses privileges (evidence: `main_window_parts/file_manager.py`)
- Background workers → Managed SSH sessions: uses sessions (evidence: `workers.py`)
- Main window → SSH terminal: provides terminal (evidence: `main_window_parts/ui.py`)
- Kubernetes interface → Cluster resources: shows resources (evidence: `kubernetes_tab.py`)
- Kubernetes interface → Workload operations: shows workloads (evidence: `kubernetes_tab.py`)
- Kubernetes interface → Cluster tunnels: offers tunnels (evidence: `kubernetes_tab.py`)
- Kubernetes AI operations → AI assistance: requests assistance (evidence: `k8s_ai_ops_parts/core.py`)
- Desktop startup → Embedded Web App: starts service (evidence: `main.py`)
- Embedded Web App → Managed SSH sessions: executes through
- Settings and security → Embedded Web App: configures (evidence: `settings_dialog.py`)
- Settings and security → AI assistance: configures (evidence: `settings_dialog.py`)
- Settings and security → Application settings store: stores settings
- Themes and icons → Application settings store: loads preferences (evidence: `themes.py`)
- Main window → Themes and icons: applies styling (evidence: `main_window_parts/ui.py`)
