Why I chose K3s for declarative configuration, not scale
I chose K3s so the lab would live in one set of version-controlled files, not because I needed multi-node scale.
On October 10 I decided to move my homelab off Docker Compose and onto self-hosted Kubernetes. I want to write down why, because the reason isn’t the usual one.
Where things stood
Section titled “Where things stood”The older of my two Mac minis had been my utility box. It ran everything: my Git forge and its CI runner, Infisical for secrets, the LiteLLM model gateway, Hindsight for agent memory, Prometheus, Alertmanager and Grafana, and Portainer to look at all of it. Each service was its own Docker Compose project, with its own folder of YAML, its own Postgres or Redis where it needed one, and its own backup job. A few more things ran as native macOS launchd services next to the containers.
It worked. But the configuration was everywhere. There was a folder per stack in the repository, live copies of those folders on the Mac mini itself, and launchd property lists. Some state didn’t live in files at all. The model gateway’s routes were stored in its database, not in Git. When I later did a full inventory of that setup, the honest summary was that the repository described what I meant to run and the machine held what was actually running, and the two had drifted apart.
The day before, I had tried an exercise. I wanted to temporarily forget everything in the current lab and work out what I actually wanted in a platform. That gave me a long list of systems, personas and capabilities. On October 10 I added my real constraints to it.
The reason
Section titled “The reason”This is the core of what I wrote that morning, with the spelling fixed:
The motivation of Kubernetes is much less for multinode reliability skills, but much more so that I can have a more unified declarative configuration so that I do not have a bunch of docker-compose YAML files everywhere.
I’m the only person who uses this lab. I don’t need high availability. A single node going down for an evening is fine. What I wanted was one place where the whole lab is described, in files, under version control, so I could read the description and know what should be running.
Kubernetes is built around exactly that: you declare the state you want and something reconciles toward it. Multi-node scheduling is part of the package, but it’s not why I wanted it.
I was also new to Kubernetes. That was part of the appeal. I wanted to learn it on something I actually use.
Why K3s
Section titled “Why K3s”ChatGPT, which I was using to think this through, suggested K3s on ordinary Linux machines as the starting point. Two alternatives came up. Talos would make sense if I wanted the node operating system itself to be declarative. A throwaway kubeadm cluster would teach me how a cluster is assembled from parts. Both were interesting, and neither was what I needed first.
K3s is a small, complete Kubernetes distribution that runs well as a single node and takes its settings from a config file. Single node and config file were the two properties I cared about. I could start with one server and grow later if I ever had a reason to.
Two boundaries, not one cluster
Section titled “Two boundaries, not one cluster”The other decision that day mattered as much as the distribution. I wrote that I wanted my CI and my secrets service on separate physical hardware “so they can be used to do things to the other physical compute.”
That became two separate environments:
- A small management cluster for the services that build and run everything else: Gitea, Infisical, Kaneo for tasks, and Argo CD.
- A workload cluster for applications and research: Phoenix, my apps and harnesses, memory services, experiments and model serving.
The test for whether the split was real was simple to state. Power off the workload host. Can I still reach Gitea, get the secrets I need, see my work records and run the trusted provisioning path? If yes, a broken experiment can’t take down the tools I’d use to fix it. It also keeps secrets away from untrusted CI jobs.
A related idea was to give each resource one owner. Something creates the machines, something configures them, CI builds, and Argo CD reconciles what runs in the clusters. If two tools manage the same thing, sooner or later they disagree.
I also asked for admin accounts on each service plus a separate everyday account for me with fewer privileges, “so that I don’t accidentally break something.” Routine work shouldn’t be able to change the platform’s own definitions.
Proxmox as a stand-in for a cloud
Section titled “Proxmox as a stand-in for a cloud”In the same message I said I wanted Proxmox to emulate what I would otherwise pay a provider for in managed Kubernetes, while still practicing real deployments to DigitalOcean or Google Cloud. My default would be my own hardware. But if I ever built this for someone else, I wanted to know it would also work on a real cloud.
The caveat came back quickly, and it was fair. Proxmox can reproduce the infrastructure side of a cloud provider: creating, configuring and replacing machines. It can’t reproduce a cloud’s load balancers, storage or identity services. Those still need real cloud exercises. And what makes an application portable is its images, configuration and tests, not the hypervisor under it.
That afternoon I also asked about memory tools. Several can run on Postgres, and Hindsight became the first one to try.
Where it landed four days later
Section titled “Where it landed four days later”By October 14 the plan had settled into concrete choices:
- The management cluster goes on the X1 laptop, as a single-node K3s server.
- The workload cluster goes inside an Ubuntu VM on a used Dell running Proxmox, not on the Proxmox host itself, so the hypervisor stays clean and the VM can be snapshotted and rebuilt.
- The two clusters are fully separate. Neither one joins the other.
- Argo CD handles GitOps, because the same declarations would carry over to a managed cloud cluster.
- CI runners run as pods in the workload cluster, away from the secrets.
None of that was built yet. Building it is the next few posts, and checking this plan against reality came right after. See Checking the homelab plan against the repository and Dropping single sign-on and full Kubernetes from the plan.
If you run Kubernetes at home for the configuration rather than the scale, I’d like to hear whether it held up for you over time.