My Home Runs on Git Push

April 2026 · 9 min read

Somewhere in my living room there's an Intel NUC, an i5 with 32 GB of RAM, about the size of a thick sandwich, and it runs my house: the smart home hub, a Minecraft server, my personal finance tracker, and the tunnel that exposes any of it to the internet. The only way anything gets deployed to it is git push.

It doesn't have to be that way. I set it up like this because I once SSH'd into a previous home server to "quickly fix" something, and eight months later had no idea what was running on it, why, or how to rebuild it. That server died in a power cut and took its undocumented configuration with it. The NUC is my act of repentance.

The stack, bottom to top

The base is k3s, running on Ubuntu Server LTS. It's Kubernetes with the enterprise fat trimmed: a single binary that runs happily on one machine and comes with Traefik for ingress out of the box. On top of that, Argo CD watches a Git repository. That repo, with its manifests, Kustomize overlays and Argo application definitions, is the cluster in every meaningful sense. The NUC is just where the repo happens to be running right now.

Argo talks to GitHub over SSH with a read-only deploy key. It's a small choice, but I like what it implies: the cluster can read its own definition and can't modify it, so changes only ever flow from Git to the hardware. There's also an optional in-cluster Docker registry for caching images locally. On a home connection, pulling a fat image once instead of five times is the difference between "rollout" and "evening activity".

The two Argo settings that make it GitOps rather than "deployment scripts with extra steps":

syncPolicy:
  automated:
    prune: true
    selfHeal: true

prune means deleting a manifest from Git deletes the resource from the cluster, which makes the repo the authority on what exists rather than a pile of things I've added over time. selfHeal means if anything in the cluster drifts from what Git says, Argo puts it back. Together they enforce the discipline I couldn't maintain by willpower. Kubectl-edit something by hand and the cluster quietly reverts it within minutes. The first time selfHeal undid my "quick fix" I was annoyed. The second time, I realized it was the entire point.

The repo can't lie about what's running, because nothing else is allowed to decide what's running.

The sync policy also carries the settings you only appreciate after your first bad evening. There are retries with exponential backoff (5 seconds, doubling, capped at 3 minutes, 5 attempts), so a flaky image pull doesn't wedge an application into a failed state forever. There's also CreateNamespace=true per application, so each app materializes complete with its own namespace. Every app is its own Argo application in its own namespace. When I inevitably break one, the blast radius is a namespace, and kubectl get pods -n tells a story about exactly one service.

What actually runs on it

Each app lives in its own folder with a Kustomize base and dev/prod overlays. The current residents:

Home Assistant with a Matter server sidecar is the smart home brain, and enough of a story that it gets its own post. A Minecraft server sits behind mc-router so multiple instances can share one port, with a small FastAPI controller that can scale it to zero when nobody's playing (the same killswitch philosophy as its cloud twin). Firefly III handles personal finance. A Cloudflare tunnel gets traffic in without opening a single port on my router: the cluster dials out and Cloudflare routes traffic back in, so my home IP stays unpublished. And a DDNS updater keeps DNS honest about where home is this week.

The dev/prod overlay split sounds absurd for a home cluster. A staging environment for my light switches? But the numbers explain it. The dev overlays run everything at minimal requests, about 550 millicores and a gibibyte of RAM across three apps, so I can trial an upgrade of anything without budging the real services. Prod overlays run the same manifests with real limits, about 2.25 CPUs and 3.5 GiB. It's the same base with two kustomization.yaml files, and upgrades get rehearsed before they touch the house. The platform itself (k3s, Argo, Traefik) idles around 2 CPUs and 1.5 GiB. That's real overhead, but on a 32 GB NUC it's rent I'm comfortable paying for a house that redeploys itself.

The update loop

The part I like most is how application updates flow end to end without me touching the cluster:

flowchart LR
    DEV["me: git push<br/>(app repo)"] --> CI["GitHub Actions<br/>build + test"]
    CI --> IMG["push image<br/>to registry"]
    CI --> KUS["kustomize edit set image<br/>commit to cluster repo"]
    KUS --> REPO["home-cluster-gitops<br/>(the source of truth)"]
    REPO --> ARGO["Argo CD detects commit"]
    ARGO --> K3S["k3s on the NUC<br/>rolling update"]
    ARGO -.selfHeal / prune.-> K3S
  

The apps with their own source repos build container images in CI, and the last step of their pipeline is a commit to the cluster repo:

kustomize edit set image myapp=registry/myapp:v1.4.2
git commit -am "chore: bump myapp to v1.4.2"
git push

Argo notices the commit, syncs, and rolls the deployment. I don't SSH in or run kubectl from a laptop, and I never have to ask which version is running, because the answer is always git log. When an update breaks something, the rollback is git revert, which means every outage automatically comes with a paper trail of exactly what changed and when I un-changed it.

The pipeline never talks to the cluster. CI's only privilege is committing to a Git repo, and the NUC pulls its changes instead of having anything pushed to it. For a machine sitting inside my home network, that inversion is the security model: GitHub holds no cluster credentials, so there are none to leak.

Yes, this is overkill

Kubernetes for a house is like using a gantry crane to hang a picture frame, and I won't pretend otherwise. What I'm really after are the practices it drags in: everything is declared and versioned, and disaster recovery is "install k3s, point Argo at the repo, wait." When the NUC eventually dies (and it will, they always do), the plan is a hardware purchase and twenty minutes instead of eight months of archaeology.

There's also the honest reason: this cluster is a gym. Kustomize overlay quirks, Argo sync behavior, Traefik ingress rules, resource-limit tuning on constrained hardware: I get to break all of it at home, where the blast radius is my own light bulbs, instead of learning it live on a client's production cluster. Half the patterns in this post (deploy keys, per-app namespaces, retry backoff tuning) I understood properly only after they bit me here first, at a cost of one annoyed evening instead of one incident report. The house is a test environment that I also happen to live in.

References