← All posts

The family is using my production environment

I've lost disks, accidentally disconnected nodes, locked myself out of the network, and recovered a mail server from a month-old backup because newer backups weren't working. These were separate failures, not one especially productive afternoon.

They changed how I treat Zebra, my Kubernetes cluster. Family use the photos and streaming, my wife and I rely on the password manager, and I use the platform to build applications. I still enjoy tinkering. I'm much less willing to try an experimental setting on the system everyone is currently using.

I'm an SRE — a site reliability engineer — and more of the habits from work have followed me home. The consequence of a mistake matters more than whether the machine belongs to an employer.

Making hardware replaceable

I resisted Kubernetes at home for a long time. I already used it at work, and it felt like more machinery than a home setup needed. What won me over was being able to add hardware and scale up without treating every machine as a unique installation.

Talos, the operating system on my Kubernetes nodes, fits the same idea. I want configuration I can describe as code and an immutable base, rather than another general-purpose server accumulating manual changes. Updates, security, and isolation are a large part of that choice.

I considered running Proxmox on every node and using Terraform to provision Talos virtual machines. That would also leave me with Proxmox and Talos to keep updated. I decided against adding that layer everywhere. There are enough versions in my life already.

Replaceable hardware still needs somewhere for its work to go. I've had a node fail and then run out of capacity on the remaining cluster. Scheduling cannot create spare memory, and database files on local disks need more thought than a stateless application restart. The control-plane article explains another dependency: the cluster needs enough of its own machinery working to replace workloads at all.

Keeping updates moving

I like automated upgrades to happen promptly. Leaving everything frozen isn't how I want to handle security. Renovate, the dependency-update bot, follows rules that allow many smaller changes to merge after validation, while I prefer major upgrades to receive manual review.

The rules have narrower exceptions too. For example, Cilium minor updates require review because Cilium supplies cluster networking; a valid manifest cannot prove that traffic will still flow. Version labels help organise review, but "minor" isn't a guarantee that nothing important changes.

Renovate proposes an update
          |
       validation
          |
     update rules
       /       \
 automatic    manual review
       \       /
    deployment pipeline
          |
    running-service checks

This is the intended flow, not proof that each release is safe. Signed deployment artifacts check the delivery source. They cannot establish application compatibility or make a database migration reversible.

Leaving myself a way back

I used to take more chances because most changes worked. The occasional failure made the apparent time saving look rather less impressive. I'm more careful about taking backups before a major upgrade now, and I avoid risky changes while abroad. Repairing access from the other side of the world has taught me enough about that arrangement.

A backup taken before an upgrade is useful only if I can restore it. Reverting a container image may also be insufficient after the new version changes stored data. For changes like that, the recovery question includes application versions, database state, and any writes made after the upgrade. That's something to establish before relying on a rollback button.

I haven't documented a complete staging and rollback procedure for every service. Nor am I claiming every automatic update has an application-level test. Those are limits to the process, not reasons to stop updating.

I still want room to explore VLANs, routing, and services I don't get to work on professionally. The change is that I now expect the production setup to keep serving while I learn. Choosing what to host includes accepting that responsibility, not just enjoying the installation.

← Back to the notebook