o-be-one/kubernetes-at-home: The Homelab That Rebuilds Cloud Infrastructure on Bare Metal

A GitOps-driven Kubernetes stack where Talos, Cilium, ArgoCD, and SOPS replace the usual cloud services, and a folder change can become a live deployment.

10 min read • View on GitHub • More from o-be-one

A wide black-ink editorial illustration of a compact home server rack drawn like a miniature data center. A repository folder tree hangs above it like a blueprint, and one folder dropping into apps lights a path through the rack. The image explains the article's thesis that Git is the control surface and home hardware becomes a cloud-shaped system.
A home cluster that behaves like a private cloud because the repository itself drives the control plane.

This repository contains the configuration to manage my home infrastructure, based on Kubernetes and GitOps.

Key Takeaways

A cloud stack with no cloud

o-be-one/kubernetes-at-home is not interesting because it runs Kubernetes at home. It is interesting because it makes a home cluster behave like a private cloud: declarative, self-updating, secrets-aware, and wired for production habits instead of hobbyist improvisation.

That shift matters. The repo does not just host apps. It defines an operating model where the filesystem, encryption layer, and network edge are all part of the same control plane.

A WSJ hedcut-style portrait of Olivier B. based on his verified GitHub avatar. The portrait provides attribution context for the repository's author and anchors the article in a real maintainer rather than a generic homelab persona.

The repo is the control plane

The repository is organized like a system, not a scrapbook. infra handles bootstrapping and low-level plumbing, core carries shared services, operators packages stateful lifecycle tools, and apps holds workloads that can be discovered and reconciled automatically.

A directory tree becomes a live cluster through ArgoCD, with encrypted configuration and generated applications flowing through the same control loop.

That structure is the trick. ApplicationSets discover folders under apps/, normalize names, and materialize ArgoCD Applications without manual glue. In practice, the repository shape becomes an API.

Traditional homelabThis repo
Manual Helm installs and ad hoc manifestsGit directories become deployable units through ApplicationSets
Secrets often handled in plaintext or spread across toolsSecrets stay encrypted in Git and are decrypted during manifest generation
Operators and workloads managed separately by handShared services, operators, and apps follow one consistent layout
Networking stitched together with extra componentsNetworking is treated as part of the platform design
A close-up editorial illustration of a metal switchboard at the network edge. One route gets a LAN IP from a pool and announces itself locally, another exits through a tunnel, and a third stays private. The image explains how Cilium creates distinct exposure modes without a traditional home-lab ingress stack.
Cilium turns the network edge into a policy choice instead of a pile of ad hoc tools.

Why Cilium changes the game for home networking

Most homelabs solve exposure with a stack of compromises: ingress controller, MetalLB, DNS glue, maybe a tunnel for the parts that fail the first time. This repo compresses that into a more modern model built around Cilium, Gateway API, and L2 announcements.

The effect is simple to state and hard to overvalue. Services can appear on the LAN with a load balancer IP, be routed through a shared gateway, or stay private without introducing a separate networking tangle for each case.

Exposure modelTypical home-lab patternThis repo
LAN accessMetalLB plus ingress plus manual IP jugglingCilium load balancer IP pool with L2 announcement
Public accessSeparate reverse proxy or tunnel stackGateway API and cloud-style routing as part of the platform
Internal-only servicesAd hoc network policiesPrivate paths as first-class design choices
Operational overheadMore components, more edge casesFewer moving parts at the network boundary

Secrets stay encrypted until the last possible moment

The secret-management story is where the repo gets especially clean. SOPS keeps secret material encrypted in Git, and KSOPS lets ArgoCD decrypt it only during manifest generation, inside the repo-server flow.

That means the repository remains auditable without turning plaintext secrets into an accident waiting to happen. The Git history stays safe, but the cluster still receives fully rendered configuration when it needs it.

apiVersion: viaduct.ai/v1
kind: ksops
metadata:
  name: repo-server-secrets
spec:
  secretFrom:
    - path: secrets.enc.yaml
  age:
    secretRef:
      name: sops-age-key

The elegant part is not encryption by itself. It is where decryption happens. The secret is never treated like ordinary source code, yet it still participates in the same declarative flow as everything else.

Stateful workloads are treated like real production

This repo does not stop at stateless apps. It uses CloudNativePG for PostgreSQL and offsite Barman backups to Backblaze B2, which tells you everything about the maintainer's priorities: recoverability first, convenience second.

That stance matters because state is where many homelabs get casual. Here, the database is not an afterthought. It is an operator-managed system with a backup path that assumes failure is normal.

Stateful workload mindsetCommon homelabThis repo
Database lifecycleManual or lightly scriptedOperator-managed through CloudNativePG
Backup postureLocal snapshots or noneOffsite Barman backups to B2
Recovery planningHope the disk survivesDesigned for restore and continuity
Operational seriousnessMixed with hobby patternsHandled like production state

The hidden thesis: sovereignty beats convenience

The comparison with a standard home-lab setup is not subtle. A conventional cluster often optimizes for getting something online quickly, then accumulates exceptions forever. This repo optimizes for a stable control loop that can keep growing without turning into a pile of one-off scripts.

It also compares well with managed cloud defaults. Cloud platforms make load balancing, storage, DNS, and secret handling easy by centralizing the complexity elsewhere. This repository rebuilds those primitives locally with open-source parts, which is more work upfront but far more portable over time.

DimensionManaged cloud defaulto-be-one/kubernetes-at-home
Load balancingProvider-managedCilium-based local exposure and Gateway API
StorageManaged block or file servicesLocal and NAS-backed primitives
SecretsCloud-integrated secret servicesEncrypted Git with SOPS and KSOPS
ControlConvenience with vendor dependenceSovereignty with open-source composition

That is why the repo lands as more than a homelab reference. It is a blueprint for infrastructure that keeps modern workflows, but refuses the assumption that convenience has to come from a cloud contract.