Homelab infrastructure configuration
Go to file
juvenal.diaz 193a44b1f1
Homelab Main / validate (push) Failing after 1m26s Details
Homelab Main / running-update (push) Has been skipped Details
Homelab Main / debian-ops (push) Has been skipped Details
Provision OpsProof test database
2026-12-04 15:14:02 -06:00
.gitea/workflows Run Gitea workflow on Debian host runner 2026-11-09 18:40:00 -06:00
apps Provision OpsProof test database 2026-12-04 15:14:02 -06:00
archive/apps/arr-stack Archive legacy ARR Kubernetes manifests 2026-06-29 21:02:11 -06:00
bootstrap Add PrivateBin and Miniflux privacy services 2026-12-04 13:14:34 -06:00
cmd Add Jeannie OpsProof deployment 2026-12-04 13:44:13 -06:00
docs Provision OpsProof test database 2026-12-04 15:14:02 -06:00
infra Add PrivateBin and Miniflux privacy services 2026-12-04 13:14:34 -06:00
internal/jeannieworkflow Add API-ready 7B Doctor retrieval comparisons in the AI lab 2026-12-03 08:56:23 -06:00
labs Add neural network learning lab 2026-11-04 15:13:54 -06:00
lib/jeannie Provision OpsProof test database 2026-12-04 15:14:02 -06:00
scripts Add PrivateBin and Miniflux privacy services 2026-12-04 13:14:34 -06:00
security Add prompt injection lab 2026-06-30 11:48:08 -06:00
tests Provision OpsProof test database 2026-12-04 15:14:02 -06:00
.gitignore Add neural network learning lab 2026-11-04 15:13:54 -06:00
.gitleaks.toml fix: resolve jeannie CI failures, add gitleaks ignore, apply ruff fixes, make scripts executable 2026-09-20 00:29:43 -05:00
.gitleaksignore fix: resolve jeannie CI failures, add gitleaks ignore, apply ruff fixes, make scripts executable 2026-09-20 00:29:43 -05:00
.goosehints Use Graphify context for Goose repository learning 2026-11-04 15:09:17 -06:00
.modularization_checkpoint chore: modularization checkpoint 2026-09-18 23:15:22 -05:00
.pre-commit-config.yaml chore: block new plaintext Kubernetes secrets 2026-10-02 08:07:30 -06:00
.sops.yaml Add Matrix/Hermes/Omniroute to jeannie pipeline (SOPS-encrypted secrets) 2026-09-16 11:37:13 -05:00
.sops.yaml.example Add SOPS age secret management bootstrap 2026-06-27 17:27:05 -06:00
README.md Refresh repository map and operational documentation 2026-11-11 17:29:53 -06:00
README.md.tmpl Refresh repository map and operational documentation 2026-11-11 17:29:53 -06:00
go.mod Complete Go module dependency metadata 2026-10-29 19:38:49 -05:00
go.sum Complete Go module dependency metadata 2026-10-29 19:38:49 -05:00
homelab.yml Add PrivateBin and Miniflux privacy services 2026-12-04 13:14:34 -06:00
jeannie Add Jeannie OpsProof deployment 2026-12-04 13:44:13 -06:00
renovate.json Add generated docs config 2026-06-27 15:42:59 -06:00

README.md

Homelab Kubernetes Pipeline

Jeannie manages three mutually exclusive Kubernetes profiles, keeps recovery and build services on the Debian laptop, and delivers apps through Argo CD. The K3s profile runs natively on the Orange Pi 5 Plus; the hybrid and all-Pimox kubeadm profiles remain available.

Quick Start

From the Debian operations laptop, select the profile and its kubeconfig explicitly. For the enrolled native Orange Pi cluster:

cd ~/my-homelab-configs
export LAB_CLUSTER_PROFILE=k3s
export LAB_CLUSTER_RUNTIME=k3s
export TF_VAR_cluster_runtime=k3s
export KUBECONFIG="$HOME/.kube/opi5-k3s-config"
./jeannie cluster-context check
./jeannie cluster-runtime check

On a fresh native installation, run ./jeannie cluster, review and enroll its identity, then run ./jeannie platform all followed by ./jeannie apps. For the accidental laptop K3s installation, use the resumable transition instead. Do not start a second deployment while that transition is running.

Profile Control plane Workers Kubeconfig under ~/.kube/
debian Debian laptop .73, kubeadm Pimox VMs 9010/9011 config
pimox Pimox VM 9001 at .65, kubeadm Pimox VMs 9010/9011 pimox-config
k3s Orange Pi host .80, native K3s Same host opi5-k3s-config

Native K3s requires the declared Kubernetes-profile Pimox VMs stopped. The VM profiles require host K3s stopped; debian also requires VM 9001 stopped, and pimox requires the laptop control plane stopped. Pipelines refuse conflicting or unverifiable runtimes. The inventory still defaults to pimox; explicit selection prevents surprises.

Documentation Hub

The detailed technical specifications have been moved to the /docs directory:

Inventory

The canonical non-secret inventory is homelab.yml. Keep LAN IPs, Tailscale IPs, public hostnames, ports, storage paths, and service ownership there.

./jeannie reads homelab.yml at startup and exports matching OpenTofu variables. scripts/render-docs renders the documentation and the static service catalog page.

Current Operating Model

  • Debian remains the operations host: Jeannie, Docker builds, external Gitea, GitOps mirror, local registry endpoint, Ollama, OmniRoute, and the AI tool wrappers run there outside Kubernetes.
  • The Orange Pi native K3s control plane has bootstrapped and reported Ready. Platform installation and application rollout are separate milestones; a Ready node does not establish that every service or data migration completed.
  • Pimox remains installed alongside native K3s on the Orange Pi. The two modes use the hardware at different times, preserving VM disks and existing data.
  • Pimox VMs are treated as rebuildable capacity. Jeannie owns the golden image, VM clone lifecycle, KVM CPU pinning for the Orange Pi big cores, qemu guest readiness waits, containerd registry trust, and stale node cleanup.
  • The canonical local image endpoint is the Debian LAN IP and registry NodePort (192.168.100.73:30500 by default). Containerd pulls through that endpoint through forwarding to the selected registry node, including the Orange Pi.
  • Identity checks pin API endpoint, CA fingerprint and kube-system UID. Cluster, platform and app state live under separate per-profile directories; scheduling feasibility uses requests, selectors, volumes and host ports.

AI Stack

The Debian-hosted AI stack is intentionally split between a containerized gateway and host-level tools:

  • ./jeannie deploy-ai-stack starts OmniRoute with Docker Compose under /data/homelab-ai-stack, seeds OpenRouter/NVIDIA keys from local files, creates the no-auth/free provider connections, validates real chat completions, and writes models.env.
  • ./jeannie deploy-ai-tools wires bare-metal goose, holmes, and hermes wrappers to OmniRoute through ai-tools.env and a Holmes config.
  • ./jeannie ai-check verifies the local knowledge index, wrappers, OmniRoute endpoint, and validated model routes.
  • ./jeannie doctor-k8s performs read-only Kubernetes collection and can ask Holmes for triage through OmniRoute. Ollama remains useful for small local tasks; the configured OmniRoute route determines whether agentic triage uses a local or external provider.

Run ./jeannie up and ./jeannie nuke only from the Debian homelab server.

Learning labs

The neural network from scratch lab walks through a NumPy classifier, backpropagation, and a training-loss plot. The opt-in Kubernetes labs cover OpenTelemetry and Tempo, Gateway API and FastAPI, secrets and certificates, and progressive delivery. The independent network sandbox and AI lab provide isolated experiments outside the cluster rollout.