Charlotte, NC
BlogJuly 25, 2026

A Boring Kubernetes Homelab: Talos, Flux, Longhorn, NFS

Blake McCarn
A Boring Kubernetes Homelab: Talos, Flux, Longhorn, NFS
I wanted a real Kubernetes homelab without turning every service in my house into a Kubernetes migration project. Standing up a cluster is the easy part: install an ingress controller, point a few Helm charts at it, call it done. What I cared about was six months later, when a node fails, a storage upgrade goes wrong, or Git says one thing while the cluster says another. So I built the cluster to be boring. It runs immutable Talos Linux nodes, Flux reconciles everything above them, storage classes are explicit, and only a short list of workloads is allowed to bring state with them. As of writing, that's three control-plane nodes and five workers, running Talos 1.13 and Kubernetes 1.36. The Kubernetes nodes run as virtual machines on a small Proxmox cluster of five hosts:
Tap to enlarge, then pinch to zoom
Each of the first three hosts runs one control-plane node and one worker. The fourth runs a single worker, and the fifth runs the biggest one. If a host dies, I lose at most one etcd member, and the other two keep quorum. The control-plane nodes get 4 cores, 8 GiB of memory, and a 100 GiB Talos disk. They don't schedule normal workloads, and they don't contribute disks to Longhorn. Each worker gets 8 cores, 16 GiB, and a separate 400 GiB data disk for Longhorn. The fifth worker gets 24 cores, 32 GiB, and an 800 GiB Longhorn disk. The workers started out with more memory. I cut them back after 30 days of metrics, when the first four peaked between 4.5 and 8.4 GiB and the fifth at 8.9 GiB. That separation costs some capacity. In exchange, an application filling a Longhorn disk can't fill an etcd or control-plane disk at the same time, and I'd make that trade again. Terraform owns the VMs themselves, including their cores, memory, disks, and which host each one lands on. A change goes through a PR, and Atlantis applies it after review. That's the same flow I wrote about in Terraforming My Homelab. Talos documents a supported Proxmox installation path, but the hypervisor isn't the interesting part. The useful part is that the nodes are replaceable shells. The durable parts live in Git, the storage systems, and tested backups. I have managed enough Linux servers to know how configuration drift starts. Someone installs a troubleshooting package. A systemd unit gets edited directly. One node receives a kernel setting that never makes it into automation. Nothing breaks immediately, which is why the change survives long enough to become archaeology. Talos removes most of that temptation. It's API-managed, built for Kubernetes and nothing else, and driven by declarative machine configuration. There is no normal SSH administration path and no package manager waiting for an emergency one-off fix. That changes the operating model. If I need to alter a node, I update its machine configuration or build the required capability into the image. If a node becomes suspect, replacing it is often cleaner than repairing it in place. Three tools own different layers:
  • Terraform, applied by Atlantis, owns the VM shells on Proxmox.
  • talosctl owns the node lifecycle, including machine configuration, Kubernetes versions, and Talos upgrades.
  • Flux owns Kubernetes resources after the cluster exists.
I intentionally did not make Flux responsible for Talos itself. A broken in-cluster controller shouldn't be the only path to repairing the operating system that runs that controller.
Tap to enlarge, then pinch to zoom
Longhorn needs host capabilities such as iSCSI. On Talos, you don't install a package after boot. You declare a system extension in the node image. My worker images carry iscsi-tools and util-linux-tools. The control-plane images never run Longhorn, so they don't. The Talos storage guidance describes that extension model. It's a small detail, and it's why I like Talos. Even the exception becomes part of the reproducible image. Once the cluster is healthy, Flux takes over the application layer. The desired state lives in a private GitHub repository. Flux pulls from that repository, applies the declared resources, and keeps reconciling. If I make a quick kubectl edit change and forget about it, Flux eventually puts the cluster back to what Git says it should be. That's annoying in the middle of troubleshooting, and it's also exactly why I run it. The repository is organized in layers so dependencies stay visible: Infrastructure controllers reconcile before applications that depend on them. Storage classes exist before PVCs. Gateways exist before HTTPRoutes. Observability comes online before I move meaningful workloads. In Flux, those layers are separate Kustomizations with dependsOn between them. infrastructure goes first. The apps, the Envoy Gateway controller, and a few special cases wait for it, and the HTTPRoutes wait for the gateway controller. Every layer after infrastructure has wait turned on, so Flux doesn't mark it ready until its resources are healthy. Most of them also retry two minutes after a failure. Without that, a webhook that's briefly down during a node drain would hold a layer back until the next 30-minute sync.
Tap to enlarge, then pinch to zoom
I don't bump chart versions by hand either. Every Monday morning, Renovate checks container images and HelmRelease chart versions. Two separate rules decide what happens next. The first decides who opens the PR. For networking, security, storage, and the gateway, Renovate waits until I approve the update on its dependency dashboard. Everything else gets a PR on its own. The second decides who merges it. Digest and pin updates merge on their own once the PR exists, even in those gated areas. Every version bump waits for me. Renovate also holds new releases before proposing them, seven days in the gated areas and three for tool apps. That check needs a release date from the registry, though. Digest updates often don't have one, and the config lets those through instead of blocking them forever. No image or chart update reaches the cluster until its PR merges, so Git has a record of each one. Secret values are different. External Secrets refreshes those from 1Password on its own schedule, with no PR. Talos and Kubernetes versions aren't on this path either. I upgrade those with talosctl.
Tap to enlarge, then pinch to zoom
This is the same pattern I use when designing client platforms at work, just scaled down. The difficult part is rarely installing the controller. It's deciding who owns each layer, how changes move between layers, and what still works when one of them is unavailable. GitOps gets awkward as soon as an application needs a password, token, or certificate. Storing plaintext secrets in Git is obviously wrong. Keeping secrets entirely out of Git has its own problem. Then nothing in Git says which secrets an app needs, where they come from, or how they become Kubernetes Secrets, so someone creates them by hand and forgets how. My application and runtime secrets live in a dedicated 1Password vault. External Secrets Operator connects to that vault through the 1Password SDK and turns the references declared in Git into Kubernetes Secrets. For those secrets, the repository holds the item and field mappings, refresh policy, target Secret shape, and workload dependency. It doesn't hold the values, even as ciphertext. There is one bootstrap problem. External Secrets can't retrieve its own 1Password service-account token before it can talk to 1Password. I keep that token encrypted in Git with SOPS and age. Flux's kustomize-controller decrypts it during reconciliation, External Secrets uses it to reach 1Password, and the rest of the runtime secrets come from the vault. As of writing, only one other Secret in the Flux tree is SOPS-encrypted, a small API key for a dynamic DNS job. So SOPS only holds the token that gets External Secrets into 1Password, plus that one DNS key. My app secrets don't live in it. Git says which secrets each app needs, 1Password holds the values, and External Secrets copies the values into the cluster.
Tap to enlarge, then pinch to zoom
Storage was the part I refused to leave implicit. Kubernetes lets a cluster have a default StorageClass. A PVC that omits storageClassName then receives storage automatically. That's convenient until a chart silently puts a database on whichever backend happened to be marked default. My cluster has no default StorageClass. Every stateful workload makes its storage choice explicit, either through a named class or a statically bound volume:
  • longhorn-ha for small, portable ReadWriteOnce volumes that benefit from replicas across worker disks
  • local-ssd as a static-only option for scratch data or latency-sensitive workloads where binding the pod to one worker is an acceptable trade-off
  • A static NFS PV for a share that already exists on the NAS and whose lifecycle should stay independent from Kubernetes provisioning
Longhorn creates a couple of classes of its own, and the restore canary has a dedicated one. None of them is the default, and application manifests name longhorn-ha.
Tap to enlarge, then pinch to zoom
The Kubernetes StorageClass documentation makes the mechanism look simple. The important part is the naming. A storage class is more than a provisioner. It's a decision about performance, availability, reclaim behavior, and ownership. A claim should make that decision obvious: There is no hidden default in that manifest. A reviewer can see the storage choice before it reaches the cluster. Longhorn turns worker disks into replicated Kubernetes block storage. A volume can keep replicas on multiple nodes, rebuild after a replica is lost, and move with a workload when Kubernetes reschedules it. That's useful, but replication has costs. Every replicated write consumes network and disk bandwidth. A bad application write is faithfully copied to every replica. A deleted volume is still deleted. Replication improves availability, but it doesn't replace backup. I kept Longhorn worker-only and non-default. The longhorn-ha class requests two replicas, waits until a pod using the claim is scheduled before it creates the volume, and retains its PVs. Longhorn won't put both replicas on the same node, and each worker sits on its own Proxmox host, so the two copies always land on different hardware. Longhorn's data path (/var/mnt/longhorn) exists only on the worker data disks. Control-plane disks aren't eligible. Neither are random directories on the root filesystem. Longhorn's own best-practices guidance recommends deliberate replica counts, storage tags, and backups to secondary storage such as NFS or S3. My backups go to the NAS, but over SMB, which looks odd next to everything else in this post that talks NFS. The NAS exports NFSv3 only, and Longhorn's NFS backupstore needs a server that supports NFSv4. Longhorn supports SMB/CIFS targets too, so that's the one I use. Recurring jobs handle the schedule. Every Longhorn volume in the default group gets an hourly local snapshot, with 24 kept, and a daily backup to the NAS, with 14 kept and every seventh one forced to a full backup. Small application PVCs are a good fit for Longhorn. Large databases don't earn a migration merely because a Helm chart can create a claim. The NAS already knows how to be a storage system. I didn't need Kubernetes to recreate it. Shared file data uses static NFS PersistentVolumes that point at shares the NAS already has. Nothing in the cluster provisions or deletes directories on the NAS. Each share keeps its own backup and lifecycle rules there. Multiple pods can mount it, and the data stays independent from the life of any Kubernetes worker VM. As of writing there's exactly one of these, the Paperless document archive. Trimmed, and with placeholder server and path values, its volume looks like this: The empty storageClassName keeps any provisioner out of it, the matching PVC names this volume through volumeName, and Retain means deleting the claim leaves the documents alone. nfsvers=3 is the same NFSv3 limit that sends Longhorn backups over SMB. That gives me a clear boundary. Longhorn owns replicated block volumes inside the cluster. The NAS owns shared data outside it. I can troubleshoot each system without guessing which layer is authoritative. There is a trade-off. NFS makes the NAS and network part of the application path. Longhorn keeps storage close to the workers but adds replication traffic and cluster-level recovery work. Local SSD avoids the network storage path but intentionally gives up portability. That's why I keep several workload-facing storage policies instead of one default answer. The first version of my plan had too much in it. It was tempting to migrate every database, monitoring component, document service, and automation tool as soon as the cluster became healthy. That would have created a lot of activity and very little evidence that the platform was recoverable. Heavy databases and latency-sensitive state stayed on dedicated hosts or dedicated storage during phase one. Existing services didn't move just to make the cluster diagram look complete. The Paperless stack shows the split. Its application components run in Kubernetes, Redis uses a small longhorn-ha volume, and the document archive is the static NFS volume above. PostgreSQL and Neo4j remain on dedicated database VMs. A workload earns its way into Kubernetes when I can answer four questions:
  1. Which layer owns its configuration?
  2. Which storage path matches its data?
  3. How is it backed up?
  4. What recovery path have I actually proven?
If the fourth answer is vague, the storage path isn't ready for a meaningful workload. I proved the Longhorn path by hand first. I took a throwaway longhorn-ha PVC through a CSI snapshot, restored the snapshot into a new PVC, and read back a marker file. Data on the NAS share is a different case. It comes back from the NAS's own backups, outside Kubernetes. Longhorn backups only cover volumes. The rest of the cluster needed its own answer to the third question, and I wanted every answer to point somewhere outside the cluster.
Tap to enlarge, then pinch to zoom
Git holds the desired state, and 1Password holds the secret values, so neither depends on the cluster surviving. etcd is the one piece of state that only exists inside it. An admin machine outside the cluster takes a Talos etcd snapshot every night at 02:20, encrypts it with age, and uploads it to S3 with a checksum. The bucket keeps snapshots for 180 days. A second job at 03:00 alerts me if the newest snapshot is more than 36 hours old. Running this outside Kubernetes is deliberate. The job doesn't need pods, Flux, or the Kubernetes API to be healthy. It only needs one control-plane node that still answers the Talos API. Proxmox backs up the Talos VM disks to the NAS. Control planes run daily and keep 3 daily, 2 weekly, and 2 monthly restore points. Workers run weekly and keep the last two. The Longhorn data disks are left out of those jobs, because Longhorn already backs up the volumes on them. Nothing tests the VM backups on a schedule yet, which makes them the weakest line on that map. The cluster has three clear control paths:
  • Talos node health and lifecycle through talosctl
  • Kubernetes desired state and drift through Flux
  • Persistent data health through Longhorn and the NAS
Those paths feed the same central observability stack I wrote about in Building a Monitoring Stack That Actually Works. The cluster doesn't run its own Grafana. One Alloy deployment scrapes the API server, kubelets, Flux, Envoy, cert-manager, MetalLB, Longhorn, CoreDNS, and the tunnel connectors. It remote-writes the metrics to Prometheus on my Mac Studio and sends pod logs and Kubernetes events to Loki on the same machine. Gatus runs in the cluster and checks user routes through the same gateway path my devices use.
Tap to enlarge, then pinch to zoom
Most cluster alerts come from one hourly health job. It queries Prometheus, checks Flux, Longhorn backups, and the restore canary through the Kubernetes API, probes the network path, and sends anything wrong to Telegram. A few jobs send their own alerts, like the etcd backup check and the dynamic DNS job. There are no Prometheus alert rules and no Alertmanager. Between them, I watch node readiness, Flux reconciliation, PVC state, Longhorn volume health, storage capacity, and the telemetry pipeline itself. I keep the Kubernetes API on the private network. It's reachable from the LAN and over the VPN, and never through the tunnel. Apps come in through one shared gateway. MetalLB hands out LAN addresses for LoadBalancer services, and Envoy Gateway takes one of them. Each hostname gets an HTTPRoute instead of its own ingress, and as of writing there are 22. A few of them point at a small proxy for admin pages that live outside the cluster, like Proxmox and the NAS. The gateway only accepts traffic from my trusted LAN ranges, the tailnet, and the cluster's own pods. cert-manager gets the certificates through a Cloudflare DNS-01 challenge, so nothing needs an open port to prove it owns a name.
Tap to enlarge, then pinch to zoom
Trusted LAN and Tailscale clients use split DNS to reach that gateway directly. Off the network, the same names resolve to Cloudflare. Two cloudflared replicas run in the cluster as extra connectors on my existing tunnel, and selected interfaces, including Longhorn, sit behind Cloudflare Access. That follows the same model I described in Tailscale First, Cloudflare Tunnel Still in the Stack. Only the admin pages I actually want from outside get a Cloudflare login in front of them. Inside the cluster, flannel still handles pod networking. kube-router runs next to it in firewall-only mode, only to enforce NetworkPolicy, because flannel doesn't. Without it, the namespace policies in Git would be accepted and never enforced. Installing Kubernetes turned out to be the small part. Most of the work went into ownership, reconciliation, storage policy, recovery, and keeping a way in when one layer is broken.
  • Proxmox for the virtual machine layer
  • Terraform + Atlantis for the VM shells on Proxmox
  • Talos Linux for immutable, API-managed Kubernetes nodes
  • Kubernetes across 3 control-plane nodes and, as of writing, 5 workers
  • Flux for GitOps reconciliation from a private GitHub repository
  • 1Password + External Secrets Operator for application and runtime secrets
  • SOPS + age for the 1Password bootstrap token
  • Longhorn for replicated worker-local block storage, backed up to the NAS over SMB
  • Static NFS volumes for shared ReadWriteMany data that lives on the NAS
  • Local SSD storage reserved for explicitly node-bound scratch and latency-sensitive data
  • Grafana, Prometheus, Loki, and Alloy for cluster and storage observability
  • MetalLB + Envoy Gateway for LAN addresses and Gateway API routing
  • cert-manager for certificates through Cloudflare DNS-01
  • kube-router for NetworkPolicy enforcement next to flannel
  • Renovate for image and chart update PRs
  • Gatus for synthetic route checks
  • Amazon S3 for encrypted etcd snapshots
A backup job that has never produced a working restore is only a recurring optimism task. One manual restore test is better, but it only proves the path worked on the day I ran it. So the snapshot test runs every night. A Kubernetes CronJob creates a tiny source PVC, writes a marker, snapshots it through the Longhorn VolumeSnapshotClass, restores a second PVC from that snapshot, reads the marker back, and deletes everything it made. It uses its own longhorn-canary class, which matches longhorn-ha except that its reclaim policy is Delete. Otherwise every nightly run would leave a retained PV behind.
Tap to enlarge, then pinch to zoom
The part I'd copy first is the check on the check. An hourly health job alerts if the canary has never succeeded or if its latest success is more than 48 hours old. Without that, a CronJob that stopped being scheduled would produce no failures, and no failures looks exactly like passing.
Share this post: