# damilaresanni/home-lab architecture

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

- Interactive diagram: https://gitdiagram.com/damilaresanni/home-lab
- Repository: https://github.com/damilaresanni/home-lab

## Overview

#### Purpose and Scope
This repository documents and bootstraps a budget personal homelab for AI/ML experimentation. It currently targets a single Ubuntu Server node and is intended to evolve into a multi-node k3s cluster supporting MLOps, model/API serving, data infrastructure, and GPU compute.

#### Entry Points
- `README.md` defines current hardware, current stack, and intended cluster evolution.
- `scripts/bootstrap.sh` is the operational bootstrap entry point for provisioning or initializing the host environment.
- `docs/architecture.md` and `docs/network.md` are the primary design references for target topology and network boundaries.

#### Host and Cluster Foundation
The current deployment is centered on `control-01`, an M720q host running Ubuntu Server 24.04 LTS. It presently performs all roles; the intended design separates k3s control-plane, worker, compute, GPU, and NAS responsibilities across several machines.
- `README.md`
- `scripts/bootstrap.sh`
- `docs/architecture.md`

#### Kubernetes Deployment Boundary
The planned runtime orchestrator is k3s. Kubernetes manifests or cluster resources are expected to live beneath `kubernetes/`, which is currently only scaffolded. This directory is the boundary between host bootstrap work and workload deployment.
- `kubernetes/.gitkeep`
- `docs/architecture.md`
- `README.md`

#### Infrastructure Provisioning Boundary
`infrastructure/` is reserved for infrastructure-as-code or host/platform provisioning assets, but contains no implemented definitions yet. The bootstrap script is the only visible automation artifact and likely bridges initial host setup into future infrastructure and Kubernetes stages.
- `infrastructure/.gitkeep`
- `scripts/bootstrap.sh`
- `docs/architecture.md`

#### Workload Plan
Current workloads are an MLOps stack using MLflow and JupyterHub, with Django for API serving. Planned replacements or additions include BentoML for model serving/MLOps, FastAPI for APIs, Ollama for LLM serving, MinIO for object/data storage, and Prometheus plus Grafana for observability.
- `README.md`
- `docs/architecture.md`

#### Network and Service Boundaries
Network design is captured separately, indicating networking is a first-class concern distinct from compute and workload deployment. Core boundaries include node-to-node cluster communication, API/model-serving ingress, storage access, and future GPU/NAS connectivity.
- `docs/network.md`
- `docs/architecture.md`
- `kubernetes/.gitkeep`

#### Maturity and Constraints
The repository is predominantly a planning scaffold: no application source, Kubernetes manifests, or infrastructure definitions are present. The key material constraints are single-node operation, 8 GB RAM, CPU-only current hardware, and a future expansion path toward GPU compute and persistent NAS-backed storage.
- `README.md`
- `infrastructure/.gitkeep`
- `kubernetes/.gitkeep`

Main entry points: [`kubernetes/.gitkeep`](https://github.com/damilaresanni/home-lab/blob/main/kubernetes/.gitkeep) (Kubernetes resources), [`docs/network.md`](https://github.com/damilaresanni/home-lab/blob/main/docs/network.md) (Network design), [`scripts/bootstrap.sh`](https://github.com/damilaresanni/home-lab/blob/main/scripts/bootstrap.sh) (Host bootstrap), [`docs/architecture.md`](https://github.com/damilaresanni/home-lab/blob/main/docs/architecture.md) (Target architecture)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_docs["Design references"]
  node_readme["Lab roadmap<br/>documentation<br/>[README.md]"]
  node_architecture["Target architecture<br/>architecture doc<br/>[architecture.md]"]
  node_network["Network design<br/>network doc<br/>[network.md]"]
end

subgraph group_foundation["Host &amp; platform"]
  node_bootstrap["Host bootstrap<br/>shell automation<br/>[bootstrap.sh]"]
  node_control01["control-01<br/>Ubuntu host"]
  node_infrastructure["Infrastructure assets<br/>IaC scaffold<br/>[.gitkeep]"]
end

subgraph group_runtime["Planned cluster runtime"]
  node_k3s{{"k3s cluster<br/>orchestrator"}}
  node_kubernetes["Kubernetes resources<br/>deployment scaffold<br/>[.gitkeep]"]
  node_cluster_nodes["Future cluster nodes<br/>compute topology"]
end

subgraph group_workloads["Planned workloads"]
  node_mlops["MLOps workspace<br/>MLflow / JupyterHub"]
  node_api_serving["API &amp; model serving"]
  node_llm["LLM serving<br/>Ollama"]
  node_storage[("Object &amp; persistent storage<br/>MinIO / NAS")]
  node_observability["Observability<br/>Prometheus / Grafana"]
end

node_readme -->|"summarizes target"| node_architecture
node_architecture -->|"defines boundaries with"| node_network
node_bootstrap -->|"provisions"| node_control01
node_bootstrap -.->|"bridges toward"| node_infrastructure
node_control01 -->|"currently hosts"| node_k3s
node_infrastructure -.->|"will provision"| node_k3s
node_k3s -->|"deploys resources from"| node_kubernetes
node_k3s -.->|"will expand across"| node_cluster_nodes
node_kubernetes -.->|"deploys"| node_mlops
node_kubernetes -.->|"deploys"| node_api_serving
node_kubernetes -.->|"deploys"| node_llm
node_kubernetes -.->|"deploys"| node_storage
node_kubernetes -.->|"deploys"| node_observability
node_api_serving -.->|"invokes models"| node_llm
node_mlops -.->|"stores artifacts and data"| node_storage
node_api_serving -.->|"accesses data"| node_storage
node_observability -.->|"monitors"| node_k3s
node_network -->|"governs connectivity"| node_k3s
node_network -->|"defines storage access"| node_storage

click node_readme "https://github.com/damilaresanni/home-lab/blob/main/README.md"
click node_architecture "https://github.com/damilaresanni/home-lab/blob/main/docs/architecture.md"
click node_network "https://github.com/damilaresanni/home-lab/blob/main/docs/network.md"
click node_bootstrap "https://github.com/damilaresanni/home-lab/blob/main/scripts/bootstrap.sh"
click node_infrastructure "https://github.com/damilaresanni/home-lab/blob/main/infrastructure/.gitkeep"
click node_kubernetes "https://github.com/damilaresanni/home-lab/blob/main/kubernetes/.gitkeep"

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_readme,node_architecture,node_network toneBlue
class node_bootstrap,node_control01,node_infrastructure toneAmber
class node_k3s,node_kubernetes,node_cluster_nodes toneMint
class node_mlops,node_api_serving,node_llm,node_storage,node_observability toneRose
```

## Components

### Design references

- [Lab roadmap](https://github.com/damilaresanni/home-lab/blob/main/README.md): documentation · Defines current hardware, stack, and target evolution. · `README.md`
- [Target architecture](https://github.com/damilaresanni/home-lab/blob/main/docs/architecture.md): architecture doc · `docs/architecture.md`
- [Network design](https://github.com/damilaresanni/home-lab/blob/main/docs/network.md): network doc · Defines cluster, ingress, storage, and future GPU/NAS boundaries. · `docs/network.md`

### Host & platform

- [Host bootstrap](https://github.com/damilaresanni/home-lab/blob/main/scripts/bootstrap.sh): shell automation · Only implemented provisioning automation. · `scripts/bootstrap.sh`
- **control-01**: Ubuntu host · Current single M720q node; 8 GB RAM and CPU-only.
- [Infrastructure assets](https://github.com/damilaresanni/home-lab/blob/main/infrastructure/.gitkeep): IaC scaffold · Reserved for future host and platform provisioning. · `infrastructure/.gitkeep`

### Planned cluster runtime

- **k3s cluster**: orchestrator · Planned runtime, initially hosted on control-01.
- [Kubernetes resources](https://github.com/damilaresanni/home-lab/blob/main/kubernetes/.gitkeep): deployment scaffold · Boundary for future workload manifests and cluster resources. · `kubernetes/.gitkeep`
- **Future cluster nodes**: compute topology · Separates control-plane, workers, GPU compute, and NAS roles.

### Planned workloads

- **MLOps workspace**: MLflow / JupyterHub · Current planned experiment and lifecycle stack.
- **API & model serving**: Django / FastAPI / BentoML · Django is current; FastAPI and BentoML are planned.
- **LLM serving**: Ollama · Planned LLM inference workload.
- **Object & persistent storage**: MinIO / NAS · Planned data layer with NAS-backed persistence.
- **Observability**: Prometheus / Grafana · Planned metrics and dashboards.

## Connections

- Lab roadmap → Target architecture: summarizes target
- Target architecture → Network design: defines boundaries with
- Host bootstrap → control-01: provisions
- Host bootstrap → Infrastructure assets: bridges toward
- control-01 → k3s cluster: currently hosts
- Infrastructure assets → k3s cluster: will provision
- k3s cluster → Kubernetes resources: deploys resources from
- k3s cluster → Future cluster nodes: will expand across
- Kubernetes resources → MLOps workspace: deploys
- Kubernetes resources → API & model serving: deploys
- Kubernetes resources → LLM serving: deploys
- Kubernetes resources → Object & persistent storage: deploys
- Kubernetes resources → Observability: deploys
- API & model serving → LLM serving: invokes models
- MLOps workspace → Object & persistent storage: stores artifacts and data
- API & model serving → Object & persistent storage: accesses data
- Observability → k3s cluster: monitors
- Network design → k3s cluster: governs connectivity
- Network design → Object & persistent storage: defines storage access
