Get in touch

All projects

Experiments · 2025–2026 · live

Homelab on GitOps

The flat is the test bench. Lights, heating, a local voice assistant, a neighborhood weather page, and this site all run on hardware in the apartment. One git repository defines them, and every machine fetches its own changes on a timer.

Open GitHub

Docker · Home Assistant · Tailscale · Cloudflare Tunnel · vLLM · Go

Diagram: one git repository on the left and five active machines in four role groups on the right (edge proxy, controller, two small boards, GPU box), connected by arrows labelled pull on a timer.
Roles, not hostnames. Five active machines across four roles fetch the repository on a five-minute timer.

01 / The problem

Home servers rot when you fix them by hand over SSH. Six months after a quick manual patch, the running container and the config file disagree, and nobody remembers which half is safe to restart. I wanted a setup that could be rebuilt from git alone, even after a hurried evening fix.

02 / My role

I wired the hardware, segmented the network, wrote the compose stacks and pull timers, and recorded the architecture decisions. Five machines run today across four roles, with two more slots reserved in the rack.

03 / The constraint

No machine is patched by hand in place. If a change cannot survive a reboot and a clean git checkout, it does not belong on the node.

04 / Decisions worth arguing about

  1. Nodes pull on a five-minute timer

    Each machine runs a cron job that fetches main, fast-forwards its checkout, and rebuilds only the stacks that changed. Merging to main deploys the change without any central runner holding SSH keys to the flat.

    COST Merging and going live are up to five minutes apart. You verify a deploy by reading the node's pull log or container timestamp rather than watching a push command finish.

  2. Keep house traffic on the LAN

    The controller, sensors and local services talk over the apartment LAN. The private tailnet is strictly for my own remote access when I am away, and public sites enter through an outbound-only tunnel with zero open router ports.

    COST Every new device has to be placed on the right network segment up front, and off-LAN debugging requires the tailnet.

  3. Record every irreversible choice in an ADR

    Whenever a hardware or network choice would hurt to undo, it gets a numbered decision record in docs/adr/: the context, the options rejected, and what would trigger a rethink.

    COST Writing the record slows down quick experiments, so the rule only applies to choices that touch state, security or hardware wiring.

05 / What can be checked

  • This page runs on it

    korsvik.net is a single static Go binary in a FROM scratch container, pulled and built by the edge board from the same repository.

    Go and look
  • Seven public sites, one pattern

    Every public site on the board follows the same contract: one binary, embedded assets, a health check, and a five-minute pull loop.

  • 40+ architecture decision records

    The repository history and docs/adr/ trace every node, stack and post-mortem from initial setup to the current rack.

    Go and look

06 / What it still cannot do

Two of the nodes run on 32 GB eMMC flash, so Docker build caches fill the disk unless pruned on a schedule. An unplugged machine misses its pull window until it boots again, and GitHub Actions billing blocks on the account mean the five-minute on-node cron is the sole active deploy path today.