GitOps homelab
A local Kubernetes platform rebuilt from Git, from ingress and encrypted secrets to dashboards and alerts.
Overview
- Type
- Personal project
- Field
- Platform engineering
- Stack
- Kubernetes, Argo CD, Helm, Prometheus
- Flow
- Git repository → Argo CD root app → kind cluster
Notes
The problem
A cluster configured by hand is hard to reproduce. The goal of this lab is to make each service, ingress rule and monitoring change reviewable and recoverable from Git.
One bootstrap, many applications
Docker hosts a kind control plane and two workers. A Make target installs Argo CD and applies a root application. That application watches the apps directory and reconciles each service, including Argo CD itself.
Keeping secrets and alerts in version control
Plaintext secrets do not belong in a repository. SOPS and age keep them encrypted until an operator decrypts them inside the cluster. Prometheus rules and Grafana dashboards live alongside the workloads; promtool tests the alert rules before merge.
The boundary of the lab
The cluster runs on kind (Kubernetes in Docker), which runs each Kubernetes node as a Docker container. That makes it practical to discard and rebuild the whole cluster on one machine, but its three nodes still share a single physical host. Stateful services such as Gitea and Vaultwarden hold test data; this is a learning environment, not a production availability claim.