~/projects · k3s cluster

/projects

homelab, automation & coding projects
ls -la ~/projects Last updated: November 2026
kvm-configurator
Go KVM Automation
Tool for declarative KVM VMs: Define CPUs, RAM, disks and networking instead of typing them in manually with virt-install — reproducible, automated.
KVM-VMs
homelab-collector
Bash k3s GitHub API
Cluster metrics via kubectl (incl. kubectl top), host stats (disk, temperature, load, uptime) and publication as cluster.json on GitHub Pages. Node query via SSH, robust error handling for unreachable nodes — a single offline node does not bring down the entire pipeline.
Bash
Dynacat Podman
Selfhosting Podman
A dashboard on the Raspberry Pi Zero 2W, highly customised to my needs — Podman instead of Docker, total RAM usage of ~100 MB. Node metrics via agent forwarding and health checks for cluster services.
~100 MB RAM
mrtoadie.github.io
HTML CSS JS Bash GitHub
Pure HTML/CSS/JS — no database, no stored data. → homelab-collector pushes fresh cluster data to the repository via the GitHub API every 5 minutes, and the client renders it directly as a live dashboard.
no frameworks
Next Steps
  • Grafana dashboard templates
  • Prometheus alerting rules
  • NixOS for Raspberry Pis
  • second control-plane
  • migrating all local Docker to Podman or to the Cluster
git diff 900-lines-of-bash..go Go · Refactoring
Why was go-clustercheck rewritten from Bash?
The original was a 900-line script driving kubectl, jq, awk and openssl through a dozen pipelines per run — every check was glued to its output format, a broken field selector silently reported “healthy”, and saving a report meant stripping ANSI escape codes with sed. The rewrite flipped the architecture: checks produce typed Result data, rendering happens separately (colored terminal or Markdown from the same source), and certificates are parsed with crypto/x509 instead of shelling out. The API client is hand-rolled over net/http with a minimal kubeconfig loader. Releases for amd64 and arm64 are built automatically by GitHub Actions on every tag — the arm64 binary runs natively on the Raspberry Pi nodes.
podman info | grep -i why Raspberry Pi Zero 2W · 512 MB RAM
Why use Podman rather than Docker for Dynacat?
Docker comes with a central daemon that runs as root — on a device with 512 MB of RAM, this is a complete waste, and the daemon also presents a vulnerability. Podman runs daemon-free and rootless: containers start as normal systemd user services, saving resources and isolating privileges. On a Pi Zero, every megabyte counts. There’s still enough headroom to run Caddy and Unbound on the Zero as well.
velero backup create --help Go
Why go-velero-manager?
Velero is powerful, but so is its CLI: creating schedules, distinguishing manual backups from scheduled ones, selecting the correct namespace — all of this requires YAML or long command-line flags. It is precisely these repetitive tasks that the Manager has banished to an interactive TUI: navigating menus instead of reading documentation, making selections instead of guessing flags. Built in Go with Charm Huh — deliberately chosen over Bubble Tea, because the dialogues are meant to feel like a native CLI, not like an app in the terminal.
git push origin cluster.json Bash · GitHub API
Why does the Collector publish via GitHub?
Because GitHub Pages is the antithesis of a managed server: no runtime, no database, nothing that needs patching. The cluster pushes a single JSON file via the API; the browser retrieves it using fetch — static hosting as a live stream. If the cluster goes down, the page switches to demo data and shows why — the demo banner includes a timestamp. The infrastructure that transports the data cannot crash, because it simply does not exist.