← All posts

My setup

The hardware and software behind my homelab: three used mini PCs running Kubernetes, managed through GitOps, with an AI agent doing much of the routine work.

Last updated

This page describes what my homelab runs on. It is a snapshot, not a recommendation: most of it grew over time, and a lot of it is second-hand hardware.

I deliberately leave out version numbers, addresses and the details of my network and security setup. They would not help you build your own, and they do not belong on a public page.

The cluster

Three identical used business mini PCs form the Kubernetes cluster:

PartSpec
MachineHP EliteDesk 800 G4 Desktop Mini (35 W)
CPUIntel Core i5-8500T, 6 cores
Memory32 GB
Storage256 GB NVMe; a second 1 TB NVMe per node for replicated volumes is being added
Network1 Gbit/s

Together that is 18 cores and 96 GB of memory at a power draw that is easy to live with. One node is the control plane, the other two are workers; all three carry workloads.

The nodes run Ubuntu LTS with MicroK8s. Each one sits behind a smart plug, so a node that hangs completely can be power-cycled without me walking to the shelf.

Around the cluster

  • A Raspberry Pi with an SSD runs the Git server and container registry. It lives outside the cluster on purpose: the cluster is rebuilt from Git, so Git must not depend on the cluster.
  • A NAS with mirrored disks holds photos and documents and is the first backup target.
  • A router and a managed switch separate the lab from the home network with VLANs.
  • An offsite backup at a separate location receives encrypted copies every night.

Platform software

AreaWhat I use
GitOpsArgo CD (app-of-apps), Sealed Secrets, Renovate for updates
StorageLonghorn with three replicas, NFS to the NAS
NetworkCalico, MetalLB, Envoy Gateway (Gateway API), cert-manager
DatabasesCloudNativePG for PostgreSQL, MariaDB
ObservabilityPrometheus, Alertmanager, Grafana, Loki
SecurityPod Security "restricted", default-deny NetworkPolicies, Trivy
BackupsLonghorn backups, database dumps, restic to the NAS and offsite
CIGitea Actions builds images, Argo CD rolls them out

Infrastructure as code

The desired state of the cluster lives in one Git repository. Nothing is applied by hand: a change is a commit, Argo CD compares the cluster with Git and syncs it. Secrets are only stored encrypted. If a node dies, or the whole cluster does, it can be rebuilt from that repository and the backups.

Rules that I do not want to rediscover after every incident are written down as short decision records, each with a handful of numbered rules. They are the reference for me and for the AI agent.

The AI agent

Much of the routine work is done by a coding agent: it writes manifests, investigates alerts, updates documentation and prepares changes. It works through the same GitOps path as I do, never sees a secret in plain text, and needs my explicit approval for anything that deletes data, costs money or speaks to the outside world in my name.

How that works in practice is described in Letting an AI agent run my homelab.

What runs on it

The usual self-hosted suspects: file sync, a photo library, a document archive, an e-book library, a search proxy, a few websites with their backends, and my own tooling for bookkeeping and research. Roughly forty Argo CD applications in total.