Homelab field notes
I accidentally built a tiny CI/CD platform
A homelab delivery platform with three exclusive cluster profiles: hybrid kubeadm, all-Pimox kubeadm, and native K3s on the Orange Pi 5 Plus. Debian keeps Git, builds, AI tools and recovery available while the cluster changes.
Future me, judging
Be honest: why build all this instead of just running a couple containers like a normal person?
Me, holding coffee
Because apparently I looked at "host a website" and thought, "what if this had a control plane, GitOps, retained storage, an image registry, and several new ways to embarrass myself?" The real goal was practice: provision the infra, keep config in Git, deploy with automation, break it, fix it, and make sure I could rebuild it without relying on shell history and vibes.
Future me, judging
Did the cluster really need three VMs to host a website?
Me, holding coffee
The VMs taught me a lot about kubeadm, scheduling, networking and recovery. They also gave a small lab more moving parts to debug. I kept both kubeadm layouts, then added native K3s on the Orange Pi host. The profiles are debian for a laptop control plane with VM workers, pimox for the entirely virtual cluster, and k3s for the native host. One runs at a time; the laptop stays the operations machine.
Future me, judging
So where is the CI/CD part hiding?
Me, holding coffee
OpenTofu owns cluster, platform and app setup. Argo CD reads the configured private Git repository, Buildx creates amd64 and arm64 images, and Kyverno supplies policy checks. Before deployment, Jeannie verifies cluster identity, checks competing runtimes, and estimates scheduling from resource requests, selectors, volumes and ports. A green CPU-usage graph alone does not mean the scheduler can fit another pod.
Future me, judging
Why run your own registry and Gitea? Was the simple option unavailable?
Me, holding coffee
The simple option was very available, which is why I heroically ignored it. The registry means experiments do not need to go to a public image repo, and external Gitea gives the lab its own Git service without making Kubernetes responsible for its own source of truth. Together they make the setup feel less like "some containers under the stairs" and more like a tiny platform with opinions, responsibilities, and occasionally dramatic storage needs.
Future me, judging
What actually hurt the most?
Me, holding coffee
Storage. Always storage. Kubernetes, Docker, retained volumes, and build caches can fill a small root disk with the quiet confidence of a bad decision. Moving OpenEBS local volumes and Docker data to the external SSD turned the lab from "why is everything on fire?" into "okay, this is usable now." Growth, allegedly.
Future me, judging
Where do the platform controllers run now?
Me, holding coffee
Placement follows the selected topology. Multi-node profiles keep platform workloads on labeled workers; the single-node K3s profile labels the selected Orange Pi control plane for platform work. The pipeline must inspect the live cluster instead of insisting that a VM worker from an older deployment exists. State, identity and scheduling checks stay shared across the three profiles.
Future me, judging
Can the current cluster actually handle all that, or are we about to smoke the Pi?
Me, holding coffee
The website and demos stay deliberately small, with expensive demo work in the browser. Native K3s can use the Orange Pi host resources without a VM allocation boundary, but the OS and background services still need their share. Capacity claims come from the live node, not the size printed on the box. The node is Ready; successful platform and app rollouts are separate checks.
Future me, judging
So the lab can now build its own worker nodes?
Me, holding coffee
Yes, and now with fewer crossed fingers. Debian runs a provisioning layer with dnsmasq, nginx, PXE boot files, GRUB, and a Debian 13 arm64 preseed. OpenTofu talks to Pimox through qm, creates VM 9000 on local storage, boots it from the network, installs the OS, runs golden-node prep, disables swap, verifies cgroups, installs containerd and kubeadm tooling, then seals it as a template. Worker clones are idempotent by VMID when a stable non-local Pimox datastore is available.
Future me, judging
And OpenWrt is joining the story too?
Me, holding coffee
The earlier OpenWrt VM workflow has been retired. A separate isolated networking sandbox is planned; it is not part of the cluster deployment.
Future me, judging
What changed on the observability and scheduling side?
Me, holding coffee
The scheduler cares about reservations, placement and local volumes, not only current CPU consumption. Prometheus and Grafana once remained Pending because their retained storage pointed at a fully reserved one-core worker. The pipeline now estimates feasibility before applying, handles initial operator bootstrap separately, and still waits for actual readiness afterward. Old evicted pods are cleanup targets; a live Pending pod needs its scheduling cause fixed.