How damilaresanni/home-lab works
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: .gitkeep Kubernetes resources · network.md Network design · bootstrap.sh Host bootstrap · architecture.md Target architecture
Components 14
Design references
- Lab roadmap · Defines current hardware, stack, and target evolution.
README.md - Target architecture
docs/architecture.md - Network design · Defines cluster, ingress, storage, and future GPU/NAS boundaries.
docs/network.md
Host & platform
- Host bootstrap · Only implemented provisioning automation.
scripts/bootstrap.sh - control-01 · Current single M720q node; 8 GB RAM and CPU-only.
- Infrastructure assets · Reserved for future host and platform provisioning.
infrastructure/.gitkeep
Planned cluster runtime
- k3s cluster · Planned runtime, initially hosted on control-01.
- Kubernetes resources · Boundary for future workload manifests and cluster resources.
kubernetes/.gitkeep - Future cluster nodes · Separates control-plane, workers, GPU compute, and NAS roles.
Planned workloads
- MLOps workspace · Current planned experiment and lifecycle stack.
- API & model serving · Django is current; FastAPI and BentoML are planned.
- LLM serving · Planned LLM inference workload.
- Object & persistent storage · Planned data layer with NAS-backed persistence.
- Observability · Planned metrics and dashboards.
Connections 19
- 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