My Home Kubernetes Cluster :octocat:
... managed with Flux, Renovate, and GitHub Actions 🤖
For AI Agents and Developers: See AGENTS.md for comprehensive setup, validation, and operational instructions.
🚨 Disaster recovery
Everything needed to rebuild lives in this repo except age.key — the SOPS
Age key at the repo root that decrypts the Talos PKI, the Flux deploy key, and
the Bitwarden bootstrap token. Losing it is unrecoverable, so:
task bootstrap:secrets-pushuploadsage.key,github-deploy.key, andconfig.yamlto Bitwarden Secrets Manager; run it after any rotation.task bootstrap:secrets-pullrestores them on a fresh workstation.- Both need
BWS_ACCESS_TOKENexported in your shell — keep that token (and ideally a printed copy ofage.key) in your personal password manager, NOT only on the workstation. - All other secrets are flat values in Bitwarden SM delivered via
ExternalSecrets — see docs/secrets.md for the naming
schema. The NUT upsmon password (
CLUSTER_NUT_MONPWD) is fetched from Bitwarden attalhelper genconfigtime.
Runbooks:
- Bare-metal rebuild — nuke & repave from blank nodes
- Full cluster shutdown — graceful power-down/up for maintenance
- etcd maintenance — defrag, alert triage, network-vs-disk diagnosis
- Ceph / data restore — Garage → RGW → CNPG/Volsync rehydration
🔧 Tools
| Tool | Purpose |
|---|---|
| flux | Operator that manages the cluster based on this Git repository |
| sops | Encrypts k8s secrets |
💻 Nodes
| Node | Hostname | CPU | RAM | Storage | Function | OS |
|---|---|---|---|---|---|---|
| Lenovo Tiny | MJ0583JP | i7-6700T | 16GB | 250GB SSD (Talos), 500GB NVME (CEPH) | Master | Talos |
| Lenovo Tiny | MJ0581M7 | i7-6700T | 16GB | 250GB SSD (Talos), 500GB NVME (CEPH) | Master | Talos |
| Lenovo Tiny | MJ0583EQ | i7-6700T | 16GB | 250GB SSD (Talos), 500GB NVME (CEPH) | Master | Talos |
| Lenovo Tiny | MJ05AJFJ | i5-6500T | 32GB | 250GB SSD (Talos), 500GB NVME (CEPH) | Worker | Talos |
| Lenovo Tiny | MJ04EW44 | i5-6500T | 32GB | 250GB SSD (Talos), 500GB NVME (CEPH) | Worker | Talos |
| Lenovo Tiny | MJ0581RW | i5-6500T | 32GB | 250GB SSD (Talos), 500GB NVME (CEPH) | Worker | Talos |
| Lenovo Tiny | MJ04968E | i5-6500T | 32GB | 250GB SSD (Talos), 500GB NVME (CEPH) | Worker | Talos |
| Lenovo Tiny | MJ05G4UB | i5-6500T | 32GB | 250GB SSD (Talos), 500GB NVME (CEPH) | Worker | Talos |
☁️ Cloud Dependencies
While most of my infrastructure and workloads are self-hosted I do rely upon the cloud for certain key parts of my setup. This saves me from having to worry about two things. (1) Dealing with chicken/egg scenarios and (2) services I critically need whether my cluster is online or not.
| Service | Use | Cost |
|---|---|---|
| Cloudflare | Domain(s), Email | ~$10/yr |
| Private Internet Access | VPN Provider | ~$40/yr |
| GitHub | Hosting this repository and continuous integration/deployments | Free |
| Bitwarden Secrets | External Secrets, and secret management | Free |
| Total: ~50$/yr |
