my-homelab-configs/README.md

69 lines
3.1 KiB
Markdown

# Homelab Kubernetes Pipeline
<!-- Generated from README.md.tmpl by scripts/render-docs. Edit README.md.tmpl and homelab.yml, then regenerate. -->
This repo bootstraps a hybrid kubeadm cluster, moves Kubernetes capacity onto
Pimox VMs, keeps bootstrap services on the Debian host, and hands app delivery
to Argo CD.
## Quick Start
From the Debian server:
```bash
cd ~/my-homelab-configs
./jeannie up
```
## Documentation Hub
The detailed technical specifications have been moved to the `/docs` directory:
- [Architecture & Infrastructure](docs/architecture.md) - Cluster layout, Networking, and Edge path.
- [Deployment Guide](docs/deployment.md) - Prerequisites, bootstrap flow, and validation.
- [AI Operations](docs/ai-ops.md) - Jeannie AI tools, Evals, and Safety cases.
- [Application Ops](docs/app-ops.md) - App delivery, Gitea, and Website management.
- [Service Catalog](docs/service-catalog.md) - Live inventory of all hosts and services.
## Inventory
The canonical non-secret inventory is [homelab.yml](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.
- Kubernetes workloads run on the Pimox VM cluster where practical. The current
target is three Debian arm64 VMs on the Orange Pi 5 Plus: one control-plane VM
and two worker VMs, each exposing two Kubernetes CPUs.
- 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
even when the registry pod is running on a Pimox worker.
## 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, but agentic Kubernetes triage is routed through OmniRoute-backed
cloud/free providers.
Run `./jeannie up` and `./jeannie nuke` only from the Debian homelab server.