~/cozmopics
A tech blog about Linux, Kubernetes, AI agents, Raspberry Pi and homelab.
Latest
Letting an AI agent run my homelab: guardrails that actually work
How I let a coding agent operate a small Kubernetes homelab through GitOps, without ever showing it a secret, and the written rules that keep it from doing anything I would regret.
All posts
2026
- Letting an AI agent run my homelab: guardrails that actually workHow I let a coding agent operate a small Kubernetes homelab through GitOps, without ever showing it a secret, and the written rules that keep it from doing anything I would regret.6 min
- From ingress-nginx to Gateway API with Envoy GatewayA practical migration guide for a small cluster: how each ingress-nginx annotation maps to Gateway API resources and Envoy Gateway policies, plus the pitfalls that cost me the most time.6 min
- Monitoring a Synology NAS with snmp_exporter and PrometheusDisk health, RAID state, temperatures and free space from a Synology NAS in Prometheus, using SNMPv3, the built-in synology module of snmp_exporter, and a set of alerts that catch failing disks early.5 min
- Cutting Prometheus series by 45 % on MicroK8sOn MicroK8s every kubelet endpoint also serves API server, etcd and scheduler metrics. How I found the duplicated histograms with the TSDB status API and removed them with a few metric relabelings, without breaking a single alert or dashboard.4 min
2021
2019
- systemd service starting without user loginRun a systemd service at boot on Manjaro/ArchLinux, including network dependency and WiFi without user login.1 min
- Keep processes running after ending an SSH sessionUse screen to keep a process alive after disconnecting from an SSH session.1 min
- PHP and Apache2 on Ubuntu — clean install for ComposerFully purge and reinstall PHP and Apache2 on Ubuntu to get a clean Composer setup without leftover config issues.1 min
- Headless Raspberry PiSet up a Raspberry Pi without a monitor or keyboard — flash, enable SSH, configure WiFi, and connect.1 min
- ip route for WiFiRoute traffic for a specific IP range through a specific network interface using the ip route command.1 min
- Pi-Backup automationAutomate a weekly Raspberry Pi image backup to a NAS using cifs and bkup_rpimage.1 min
- Pi-hole and PiVPNSetting up Pi-hole as a DNS-based ad blocker together with PiVPN and Unbound.1 min