Ixnextiliztli

Homelab tlahcuilolli

Tlatecpanaliztli homelab CI/CD pipeline

A homelab delivery platform with three exclusive cluster profiles: hybrid kubeadm, all-Pimox kubeadm, and native K3s on the Orange Pi 5 Plus. Debian keeps Git, builds, AI tools and recovery available while the cluster changes.

Portfolio tlamantli

Evidence quen production

A closer look at how I design, operate, and investigate real systems in my homelab.

Jeannie: make operations repeatable

Problem: Managing multiple cluster layouts and external services by hand made routine operations harder to repeat safely.

Approach: I built a command-line toolkit for profile-aware workflows, identity checks, diagnostics, deployment preflight, and recovery.

Result: The lab has a documented operational entry point for common tasks across its cluster profiles.

Lesson: Automation is most useful when it explains what it is checking and stops when the evidence is insufficient.

Xinechihcuilhui

A Kubernetes delivery platform

Problem: A small lab needed a repeatable way to build, deploy, observe, and recover applications across different cluster layouts.

Approach: I combined OpenTofu, Helm, Argo CD, a private registry, policy checks, and monitoring with cluster identity and scheduling checks.

Result: The same repository describes hybrid kubeadm, all-VM kubeadm, and native K3s layouts, with one profile active at a time.

Lesson: A successful deploy needs more than manifests: placement, storage, identity, and post-deployment readiness matter too.

Xinechihcuilhui

Tracing a K3s storage failure

Problem: The native K3s API stopped responding and the service repeatedly failed to start.

Approach: I traced the missing executable message to I/O errors on a stale SSD-backed runtime mount and checked the live mount and filesystem identity.

Result: The investigation distinguished the runtime mount failure from an application or ingress failure; storage health and durable recovery still require verification.

Lesson: An application error can be a storage symptom. Follow the dependency chain and record uncertainty rather than declaring a fix prematurely.

Xinechihcuilhui

Architecture mapa

Homelab, end to end

This diagram shows how source control, deployment, cluster profiles, and services fit together. It describes the intended architecture rather than live availability.

Git & builds → OpenTofu & Argo CD → Kubernetes workloads → Prometheus & Grafana

Explore the detailed architecture
Homelab architecture: delivery, alternative cluster profiles, public edge, and services. The diagram describes configuration, not live health.

The three profiles are alternatives, not simultaneous clusters. Native K3s uses the Orange Pi host directly. Retained disks and data survive mode changes, but storage moves require an explicit verified copy or restore.

Xiquitta Christmas-tree version
Nehuatl mostla, judging

Melahuac: tleica niquichihua nochi inin ihuan ahmo zan ome containers quen normal person?

Nehuatl, coffee ipan noma

Pampa onciquitta "host a website" ihuan oniquilhuia: "tlein panos tla inin quipia control plane, GitOps, retained storage, image registry, ihuan miec yancuic ways para nimopinahuiz?" Melahuac goal catca practice: provision infra, quipia config ipan Git, deploy ika automation, xitlapana, xicyecana, ihuan xiquitta tla huel rebuild ahmo ika shell history ihuan vibes.

Nehuatl mostla, judging

Did the cluster really need three VMs to host a website?

Nehuatl, coffee ipan noma

The VMs taught me a lot about kubeadm, scheduling, networking and recovery. They also gave a small lab more moving parts to debug. I kept both kubeadm layouts, then added native K3s on the Orange Pi host. The profiles are debian for a laptop control plane with VM workers, pimox for the entirely virtual cluster, and k3s for the native host. One runs at a time; the laptop stays the operations machine.

Nehuatl mostla, judging

Canin motlatia CI/CD part?

Nehuatl, coffee ipan noma

OpenTofu owns cluster, platform and app setup. Argo CD reads the configured private Git repository, Buildx creates amd64 and arm64 images, and Kyverno supplies policy checks. Before deployment, Jeannie verifies cluster identity, checks competing runtimes, and estimates scheduling from resource requests, selectors, volumes and ports. A green CPU-usage graph alone does not mean the scheduler can fit another pod.

Nehuatl mostla, judging

Tleica own registry ihuan Gitea? Simple option amo oncatca?

Nehuatl, coffee ipan noma

Simple option huel oncatca, ic heroic oniquignore. Registry quitosnequi experiments amo monequi yasque public image repo, ihuan external Gitea quimaca lab own Git service ahmo quichihua Kubernetes responsible para source of truth. In ome quichihua setup ma nesi quen tepiton platform ika opinions, responsibilities, ihuan storage drama.

Nehuatl mostla, judging

Tlein achi cualani?

Nehuatl, coffee ipan noma

Storage. Nochipa storage. Kubernetes, Docker, retained volumes, ihuan build caches huel quitemitia root disk ika quiet confidence of bad decision. Moving OpenEBS local volumes ihuan Docker data ipan external SSD quicuep lab de "tleica nochi tlatla?" ica "okay, axcan huel tlatequipanoa." Growth, supposedly.

Nehuatl mostla, judging

Where do the platform controllers run now?

Nehuatl, coffee ipan noma

Placement follows the selected topology. Multi-node profiles keep platform workloads on labeled workers; the single-node K3s profile labels the selected Orange Pi control plane for platform work. The pipeline must inspect the live cluster instead of insisting that a VM worker from an older deployment exists. State, identity and scheduling checks stay shared across the three profiles.

Nehuatl mostla, judging

Current cluster huel quipia nochi inin, o tiquchichinos Pi?

Nehuatl, coffee ipan noma

The website and demos stay deliberately small, with expensive demo work in the browser. Native K3s can use the Orange Pi host resources without a VM allocation boundary, but the OS and background services still need their share. Capacity claims come from the live node, not the size printed on the box. The node is Ready; successful platform and app rollouts are separate checks.

Nehuatl mostla, judging

Axcan lab huel quichihua own worker nodes?

Nehuatl, coffee ipan noma

Quena, ihuan axcan ika fewer crossed fingers. Debian quipia provisioning layer ika dnsmasq, nginx, PXE boot files, GRUB, ihuan Debian 13 arm64 preseed. OpenTofu notza Pimox through qm, quichihua VM 9000 ipan local storage, quiboota from network, quinstala OS, quichihua golden-node prep, disables swap, verifies cgroups, installs containerd ihuan kubeadm tooling, then seals it as template. Worker clones cateh idempotent by VMID tla onca stable non-local Pimox datastore.

Nehuatl mostla, judging

Ihuan OpenWrt no quisa nican?

Nehuatl, coffee ipan noma

The earlier OpenWrt VM workflow has been retired. A separate isolated networking sandbox is planned; it is not part of the cluster deployment.

Nehuatl mostla, judging

Tlein omopatla ipan observability ihuan scheduling side?

Nehuatl, coffee ipan noma

The scheduler cares about reservations, placement and local volumes, not only current CPU consumption. Prometheus and Grafana once remained Pending because their retained storage pointed at a fully reserved one-core worker. The pipeline now estimates feasibility before applying, handles initial operator bootstrap separately, and still waits for actual readiness afterward. Old evicted pods are cleanup targets; a live Pending pod needs its scheduling cause fixed.

Yancuic activity log

Tlein omopatla since first build

These entries describe successive stages of the lab, not services that all run at once. The latest milestone is native K3s reporting Ready on the Orange Pi after retiring the accidental laptop installation. Platform and apps still need their own completion checks.

  1. 01 Moved Gitea out of Kubernetes ihuan onto Raspberry Pi as local Git service, while keeping public /git/ route through edge stack.
  2. 02 Installed ihuan validated Debian-hosted Gitea Actions runner para pushes to main can build, scan, ihuan deploy without laptop session.
  3. 03 Added custom checkout flow para /git/ subpath ihuan kept persistent Debian checkout para deployment scripts.
  4. 04 Added Gitleaks secret scanning ihuan Trivy scanning para app ihuan infrastructure tree.
  5. 05 Changed deployment so validated commit is pushed into local GitOps mirror before jeannie runs, preventing Argo CD from reconciling older tree.
  6. 06 Hardened website, demos-static, ihuan registry workloads ika non-root containers, read-only root filesystems, resource limits, ihuan explicit writable volumes.
  7. 07 Split demos into dedicated demos-static image ihuan Argo CD application so PHP website stays small and boring.
  8. 08 Changed Gitea backups to dump from Raspberry Pi Docker container ihuan store archives on Debian host.
  9. 09 Validated full main-branch deployment path: fetch main, apply OpenTofu layers, build ihuan push arm64 images, refresh Argo CD, ihuan confirm runner completes successfully.
  10. 10 Built Debian 13 arm64 Pimox template end to end ika PXE, preseed, qemu-guest-agent discovery, cgroup validation, swap disabled, ihuan final seal step.
  11. 11 Added Pimox worker clone automation para VM 9000 ma mocahua ipan local storage mientras worker nodes use selected non-local datastore.
  12. 12 Previously experimented with an OpenWrt VM workflow; that workflow has since been retired in preparation for an isolated sandbox.
  13. 13 Installed monitoring stack ihuan moved platform add-ons such as Argo CD, Kyverno, ihuan prometheus-stack toward app-worker placement instead of treating control plane as spare capacity.
  14. 14 Reworked website image para Apache ma mocahua web server while PHP runs through PHP-FPM, OPcache enabled, ihuan runtime validated through Gitea Actions instead of local image builds.
  15. 15 Pre-rendered read-heavy website pages into static HTML, moved visitor ideas behind small JSON endpoint, added cache headers, enabled HTTP/2 ihuan connection reuse at OCI edge, ihuan measured reused HTTP/2 asset loads around 60ms.
  16. 16 Added image signing ihuan SBOM validation: jeannie axcan builds ika SBOM metadata, signs php-website ihuan demos-static ika Cosign, attaches signed SPDX SBOM attestations, ihuan Kyverno audits unsigned local-registry pods before enforcement is promoted.
  17. 17 Migrated Kubernetes to Pimox VM profile while Debian keeps Jeannie, Gitea, Docker builds, registry endpoint, Ollama, ihuan AI stack.
  18. 18 Added OmniRoute AI gateway, seeded provider keys safely from local files, created runtime-validated free model routes, ihuan wired goose, Holmes, ihuan Hermes through Jeannie wrappers.
  19. 19 Hardened Pimox redeployability after real failures: VM CPU pinning on big cores, qemu-agent/SSH readiness waits, containerd 2.x registry config, stale pod cleanup, ihuan node imagefs cleanup before app deploys.
  20. 20 Added per-profile state and pinned API endpoint, CA fingerprint and namespace UID so an old kubeconfig cannot silently redirect a deployment into another cluster.
  21. 21 Added scheduling feasibility checks and runtime exclusion across the debian, pimox and k3s profiles. One-core workers are assessed by actual capacity and reservations rather than a fixed two-core requirement.
  22. 22 Retired accidental laptop K3s with retained state and datastore backups, preserved the source registry, and copied verified registry data to the Orange Pi before native K3s startup. Other old laptop PVC data stays preserved locally.
  23. 23 On November 2, 2026, the native opi5plus node at 192.168.100.80 reported Ready. Platform and apps remain separate rollout milestones; a Ready node alone does not prove either is finished.

Tlamantli ihuan tleica nemi nican

Improvement tlatecpanaliztli

Todo list para next homelab pass

Inin cateh improvement proposals, amo chores zan pampa chores. Each item either reduces rebuild risk, tightens supply-chain hygiene, o makes platform easier to operate quema tlein fails.

Visitor tlamachiliztli

Tlein tijpatlaz next?

Xititla ce practical idea para homelab backlog. Submissions mocahua quen plain text, limited size, ihuan escaped quema rendered.