Three-node Kubernetes platform
A k3s cluster reconciled entirely from Git, with an edge, secrets and backups that are all code.
The constraints decided the design: used hardware, residential power, one operator, and no inbound ports. Anything that needs a person every week must be automated or removed, and a machine can die without losing the lab.
Three NixOS hosts form one k3s cluster with a three-member etcd quorum: a Ryzen 5 4600G platform node, an i5-7500T media node (bought for its QuickSync), and a ThinkCentre M700 Tiny that took over etcd from a 2012 MacBook. ArgoCD is the only way to change anything. OpenTofu manages the firewall and the Cloudflare Zero Trust edge, and the Cloudflare Tunnel is the only door in. External Secrets holds the credentials; Cilium runs without kube-proxy; Longhorn and CloudNativePG keep state. A staging host rehearses every datapath change first.
Backups are two daily, age-encrypted streams to Cloudflare R2 (application data kept 14 days, credentials 90). A weekly job restores and verifies them, and a separate daily check alerts when the newest copy is older than 36 hours.