Project
Tir
My self-hosted infrastructure
I've been operating and maintaining my own servers since 2018. My data is important to me, so I've learned to be incredibly careful across each cluster iteration to make sure none of it is lost.
Cluster Architecture
Over the years, my needs and therefore my server infrastructure have changed. Most recently, after being unable to fix a bug with some Minecraft server deployments, I decided it was time to build an HA 3-node cluster with network storage and failover.
After many years of maintaining the project myself, I decided it was time to bring in AI coding agents to help me build it, while the design and decisions stayed mine. In designing this, I had three rules in mind: each environment must be isolated from every other, storage must be consolidated and not scattered across each server, and most importantly a single missing node must never cause downtime for any service.
This project fulfills those strict requirements, and its design is built around redundancy and security. The entire config lives in a private repository called Tir which holds the node configurations as well as the manifests and values (encrypted with SOPS). If something goes wrong, I'm the on-call engineer to fix it, and if something gets lost or deleted, I'm the one who loses their data.
Architecture
Internet
Ingress + TLS
Traefik · cert-manager (Let's Encrypt DNS-01)
Host cluster (HA)
platform
datastores + apps
dev
sandbox
edge
public apps + games
ci
runners
3 stateless Talos nodes
Storage server
ZFS · NFS + iSCSI
Backups
Velero → S3 · ZFS snapshots
Backups & Recovery
To ensure that my storage stays secure and fast, I determined to use ZFS volumes on an SSD pool because it allows for better integration with volumes when using network storage which the cluster would need to interface with. The ZFS vols are then also replicated to an HDD pool for redundancy across multiple drives. An S3 provider living on the cluster backs up the entire cluster state using Velero so that even if the whole cluster gets lost, I can rebuild it without losing anything. Those backups stay on-site for now: at this scale, paying for an external S3 provider wasn't worth it, so losing the storage server is the one failure they don't cover.
By backing up my old cluster and then restoring it to the new cluster using Velero & the storage, I directly proved the recovery system for my use case. Along the way I found gaps during the restore that needed to be addressed, but because of how precautious I was with my backup system, nothing was lost.
Network & Storage
All of the cluster data lives on a dedicated storage server. Its volumes are advertised to the cluster via iSCSI and NFS systems as different types of storage classes for different purposes. By using this pattern, I am able to ensure that none of the data on one node is lost or unavailable if that node goes dark.
In a small-scale system, that storage is now the biggest liability to a failing system, but its configuration can be backed up and I am able to configure it to back up to Backblaze or another S3 provider for offsite protection.
Simplicity vs Complexity
If I only wanted a portfolio website where I could show cool pictures and tell cool stories, then I wouldn't need anything close to what I have. Some may argue I already have a system way more overkill than anyone would ever need. I disagree, because it tells the story of how I own my personal data, can learn & build complex new systems, and trust my work enough to rely on it myself.