Skip to content

A small cluster, deliberately built

Homelab: self-hosted Kubernetes and GitOps automation

Kubernetes / K3s GitOps / Flux CD Helm Terraform Vault

One Ubuntu VM. A K3s cluster. Applications and infrastructure kept in Git, with clear ownership and room to measure what each workload costs.

Explore the architecture Set up the homelab

The whole system

Homelab architecture: GitOps, private LAN access, applications, secrets, and local storage

Open the architecture diagram at full size.

This is the declared architecture, not a live status board. Homepage and Linkding are included independently of Vault. Shoutrrr and CloudNativePG are included through dedicated groups; Shoutrrr waits for retained storage and Vault-backed credentials. Cloudflared publishes only Shoutrrr at https://shoutrrr.hyperoot.dev.

Engineering choices

  • One source of configuration

    Flux watches main. Kustomize assembles individual resource files, and Helm installs the shared components. Follow reconciliation.

  • One owner for each component

    K3s supplies ingress, load balancing, DNS, local storage, and live metrics. Flux adds the applications and infrastructure without reinstalling those components. See the platform boundary.

  • Secrets outside Git

    Vault holds values, Terraform configures its authentication, and External Secrets delivers Kubernetes Secrets. Manual bootstrap is explicit. Follow the secret path.

  • Resources treated as a budget

    The reference VM has 4 vCPUs and about 5.28 GiB RAM. Homepage and Metrics Server show current readings. Historical metrics and alerting are not installed. Inspect current metrics.

Applications

Applications are the tools used directly for everyday work. They have their own configuration, access, and data requirements.

  • Homepage

    The personal starting page for application links, administrative interfaces, and current resource readings.

  • Linkding

    The private bookmark collection. A new installation needs an owner account before sign-in.

Shoutrrr is the social publishing trial, using one container, SQLite, and Vault-backed credentials. Inclusion does not imply a completed bootstrap. See the application inventory for activation and setup details.

Infrastructure

Infrastructure runs and administers the cluster. Some components have web interfaces, but those interfaces serve administration rather than changing the component's role.

  • Flux

    Reconciles the configuration in Git and exposes the operator's status interface.

  • Vault and External Secrets

    Store private values and deliver Kubernetes Secrets. Vault initialization, unsealing, authentication, and credential population are separate setup steps.

  • K3s foundation

    Supplies CoreDNS, Traefik, ServiceLB, local volume provisioning, and Metrics Server. These support components do not all need a dashboard shortcut.

The infrastructure inventory covers ownership, setup, CloudNativePG, and the Shoutrrr-only Cloudflared tunnel. Homepage's visible cards are shortcuts, not a complete list of cluster workloads.

Find your route

I want to… Start here
Understand how everything fits Architecture
See the end-user tools Applications
Inspect the administrative components Infrastructure
Build a similar private cluster Setup
Change configuration safely GitOps
Bootstrap, troubleshoot, or recover Runbooks

The configuration is the evidence of intended behavior. Use the verification commands in each guide to establish what is actually running.