Kubernetes homelab

A small cluster built to expose real operational problems.

This case study covers the Kubernetes cluster on Ubuntu that preceded the Talos migration. It had three nodes, with one control-plane node and two workers.

Architecture before Talos

Flux reconciled manifests from the in-cluster Forgejo instance. Local charts described project-specific services. Infisical injected runtime secrets, while a Synology NAS provided shared persistent storage.

Decisions that mattered

Git takes ownership

Changes go through Git and Flux. This rule prevents a manual image or manifest update from fighting the declared state.

Storage leaves the workers

Local persistent volumes depended on one worker. The affected workloads now use NFS-backed PVCs on the NAS.

Secrets stay out of the repository

Infisical supplies credentials at runtime. CI also searches for secrets committed by mistake.

CI works without the cluster

Scripts render charts, validate Kubernetes schemas and enforce a storage policy before a change reaches the cluster.

Path of a change

  1. Commit

    A chart or configuration change enters Git.

  2. Check

    Gitleaks, Helm rendering, kubeconform and storage rules inspect it.

  3. Reconcile

    Flux reads the Git source and applies the declared state.

  4. Observe

    Prometheus, Grafana and Loki provide signals after deployment.

Limits of this architecture

The original cluster had one control-plane node and depended on a NAS for shared storage. Some services had one replica and several workloads depended on the available hardware. The repository documents these limits and the risks they carry.

The repository contains the manifests, checks and runbooks.

Its public architecture and recovery procedures make the engineering choices open to inspection.

Read the code and documentation