Homelab setup based on Talos, Omni and Corium.
This repository contains the configuration files for my homelab. The homelab is a collection of servers and services that I run at home or in the cloud. The homelab is used for learning, testing, and hosting projects.
The home cluster runs Talos (don't hesitate to check a little article I wrote about it), managed by a self-hosted Omni instance. The two OVH servers run Corium (bootc + k0s) and are driven with cctl.
- Omni (Self-hosted) : Manage the Talos nodes (
turing). - Corium : bootc + k0s image for the OVH servers (
mocha,doppio). - Cilium as CNI and LB (ARP mode). On
mochaanddoppio, Corium installs it as an addon of the node document. - ArgoCD to manage the GitOps workflow (also a Corium addon on
mochaanddoppio) - Traefik as Ingress controller (and for middleware management).
mocharuns a second instance,traefik-internal, for the private hostnames under*.nb.mocha.thoughtless.eu. - NetBird (self-hosted, with the NetBird operator) as private network to reach internal services (
mocha) - Cert Manager for TLS certificates
- External DNS to publish records from Ingresses
- Storage:
- Rook (Ceph) on
turing, plus csi-driver-nfs for the NAS. - OpenEBS on
mocha: LVM (openebs-lvmpvby default,openebs-lvmpv-thin) andopenebs-hostpath. - OpenEBS ZFS on
doppio(doppio-zfs).
- Rook (Ceph) on
- External Secrets to fetch secrets from a remote store
- OpenBao (via bank-vaults) as secret store, one per cluster
- Authentik for SSO / forward-auth, and Dex (
mocha) - SigNoz + OpenTelemetry Operator for metrics, logs and traces, with OBI (eBPF auto-instrumentation) on
mocha - Grafana + Loki dashboards (
mocha) - Trivy Operator for vulnerability and configuration reports (
mocha) - CrowdSec to filter traffic hitting the Ingress (
mocha) - Cloudflare Tunnels to expose services to the internet (
turing) - restic CronJobs (database dumps, OpenBao snapshots) to S3 (
mocha) - Spegel to share images between nodes (
turing) - Reloader to restart workloads when a ConfigMap/Secret changes
- Mocha : single bare-metal node hosted by OVH (128GB RAM, 8 CPU, 2x512GB NVMe), running Corium. Production cluster, also hosts SigNoz, NetBird and most of the apps (Vaultwarden, Hermes agents, sandboxes, Ollama, Matomo...). Its node document is
mocha/corium/mocha.yaml. - Turing : cluster made of small devices (ARM and x86) at home. Local hosting, storage (Rook + NAS) and testing. Hosts Home Assistant, Immich, Paperless and RustFS.
- Doppio : single bare-metal node at OVH, kept for storage, backup and downloads (Deluge, FlexGet, Kavita). Like
mocha, it runs Corium on a ZFS pool and is driven withcctl. Seedoppio/README.md. - Ristretto : single-node Talos VM on Proxmox, not managed by ArgoCD and reachable through ProxyAuthK8S. See
ristretto/README.md.
cortado and the standalone kubevirt cluster are retired. The old configurations live in the git history.
- Americano : a bare host running podman quadlets, reconciled by Materia instead of ArgoCD. See
americano/README.mdfor the branch trick that makes it work from a subdirectory. external/: OTel collector and exporter units for machines outside the clusters (Proxmox hosts).
turing is driven by Omni. Install omnictl, merge the omniconfig downloaded from the Omni instance, then:
omnictl config merge ./omniconfig.yaml
omnictl cluster template sync -f turing/template.yaml
omnictl kubeconfig --cluster turingmocha and doppio are driven by cctl with their node document, see doppio/README.md for the full procedure:
cctl apply <node> --file mocha/corium/mocha.yamlOn mocha CI does it: a push to mocha/corium/ runs corium-mocha, which upgrades the node to the image in image.yaml (a reboot) and then applies mocha.yaml. Renovate bumps both, so merging its PR rolls the node.
mocha/kubeconfig logs into mocha through Authentik (OIDC).
Recurring operations are mise tasks:
| Tasks | What they do |
|---|---|
vault:status, vault:unseal, vault:kv |
Show the seal status, unseal, and read or write kv/ in the Vault of the current context |
octodoctor:scan, octodoctor:export |
Run OctoDoctor on the manifests in git or on an export of a live ArgoCD |
nb:setup, nb:tunnel, nb:peer, nb:mac, nb:teardown |
Reach the NetBird hostnames from a Mac, and expose a local port through mac-relay |
mise tasks # list them
mise run vault:statusThe docs/ directory holds the guides (getting started, secret management, backup, SigNoz, Cloudflare tunnels, sandboxes...) and a changelog. The page.yaml workflow publishes them as an mkdocs site: https://qjoly.github.io/GitOps/.
| Workflow | What it does |
|---|---|
omni-template-sync.yaml |
Syncs the Omni cluster template of turing on every push to main (see below) |
corium-mocha.yaml |
Upgrades mocha to the image in mocha/corium/image.yaml (reboot), then applies mocha.yaml |
materia-americano.yaml |
Republishes americano/ to the root of the americano branch for Materia |
tangled-mirror.yaml |
Mirrors the repo to tangled |
page.yaml |
Builds and publishes the mkdocs site (docs) |
spindle-image.yaml, abcdesktop-image.yaml, atcr-hold-image.yaml |
Build the container images for a few self-hosted apps |
The workflow .github/workflows/omni-template-sync.yaml runs omnictl cluster template sync and helmfile apply on every push to main that modifies turing/template.yaml, turing/patches/, turing/helmfile.yaml or turing/helm/. On a pull request it posts the dry-run and the helmfile diff as a comment.
It authenticates against Omni with an Omni service account. This is an Omni token, not a Kubernetes ServiceAccount.
Run this once from a machine where omnictl is already configured:
omnictl serviceaccount create github-actions --role Operator --ttl 8760hThe command prints an OMNI_ENDPOINT and an OMNI_SERVICE_ACCOUNT_KEY. Store both as GitHub Actions secrets:
| Secret name | Value |
|---|---|
OMNI_ENDPOINT |
Endpoint printed by the command |
OMNI_SERVICE_ACCOUNT_KEY |
Key printed by the command |
Save the
OMNI_SERVICE_ACCOUNT_KEYimmediately. The command shows it only once.
Add them at: Repository → Settings → Secrets and variables → Actions → New repository secret
Example of kubeconfig file
apiVersion: v1
kind: Config
clusters:
- cluster:
server: https://omni.home.une-tasse-de.cafe:8100/
name: omni-turing
contexts:
- context:
cluster: omni-turing
namespace: default
user: omni-turing-quentinj@une-pause-cafe.fr
name: omni-turing
current-context: omni-turing
users:
- name: omni-turing-quentinj@une-pause-cafe.fr
user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
args:
- oidc-login
- get-token
- --oidc-issuer-url=https://omni.home.une-tasse-de.cafe/oidc
- --oidc-client-id=native
- --oidc-extra-scope=cluster:turing
command: kubectl
env: null
provideClusterInfo: false