Kubeadm cluster on bare metal and one cloud node. Flux CD, Cilium, Gateway API. Manifests for the public sites live here.
  • Python 60.8%
  • Shell 35.3%
  • Dockerfile 3.5%
  • Makefile 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lance Walters f1fcf21a94 forgejo/prune: prune every Docker daemon, cap builder cache by age, alert on growth
The nightly CronJob reported Complete while never reclaiming build cache:
docker 27/buildx 0.20.1 accepts --keep-storage and --max-used-space but
returns 'Total: 0B' for both (measured: 21.44GB cache with a 20GB cap, and
541MB cache with a 100MB cap). The comment claiming 53GB reclaimed was true
on an older CLI and is now false. --filter until= does reclaim, so the cash
cap is enforced by walking age windows down (72h -> 0s) and stopping as soon
as the cache is under the cap.

Coverage is now every daemon, discovered not listed: the Pi host socket and
every in-cluster dind pod matching label app=forgejo-runner with a dind
container, pruned over pods/exec with a namespace-scoped ServiceAccount, so
the arm64 dind migration is picked up without editing this job.

Busy guard skips a daemon with a live build and still exits 0. Named volumes
are never pruned; their sizes are printed every run. Adds PrometheusRule
forgejo-prune: cronjob staleness/failure plus node filesystem high-watermark.
2026-10-27 01:43:20 -04:00
apps forgejo/prune: prune every Docker daemon, cap builder cache by age, alert on growth 2026-10-27 01:43:20 -04:00
clusters docs: internal WireGuard-only service pattern (mechanism, firewall, add-next-service, negative tests + verification log) 2026-10-27 00:17:45 -04:00
docs dashboards: zero-render stats, drop the aspirational folder annotation, keep the validator in the repo 2026-10-27 01:40:15 -04:00
infographic/home-k8s-mesh cillium gateway config switch to linode node as gateway 2026-09-14 23:47:48 -04:00
infrastructure docs: Grafana persistence + admin-password ownership and recovery path 2026-10-27 01:04:12 -04:00
monitoring/controllers/home forgejo/prune: prune every Docker daemon, cap builder cache by age, alert on growth 2026-10-27 01:43:20 -04:00
.gitignore Initial HomeK8s tree matching lab GitOps layout. 2026-09-10 23:38:04 -04:00
Makefile Initial HomeK8s tree matching lab GitOps layout. 2026-09-10 23:38:04 -04:00
README.md Initial HomeK8s tree matching lab GitOps layout. 2026-09-10 23:38:04 -04:00

HomeK8s

Home Kubernetes cluster (kubeadm), same GitOps layout as lab/.

Flux CD will take over once Forgejo is back. Until then apply with kustomize:

kubectl apply -k infrastructure/home

Cluster

Node WG IP Roles Notes
siriussec 10.10.0.2 control-plane, worker default scheduling
rpi 10.10.0.1 traffic, worker dedicated=network:PreferNoSchedule
  • CNI: Cilium 1.18.13, kube-proxy replacement, Gateway API hostNetwork on dedicated=network
  • Overlay: WireGuard 10.10.0.0/24 (API only on WG)
  • Ingress: Cloudflare tunnel → 127.0.0.1:8080 on rpi → Gateway gateway-system/public
  • Storage: local-path on siriussec (/opt/local-path-provisioner)

Pin traffic / light workloads to the Pi:

nodeSelector:
  dedicated: network

Layout

homek8s/
├── apps/
│   ├── base/                 # app definitions
│   └── home/                 # overlay applied to this cluster
├── clusters/
│   └── home/                 # Flux Kustomizations (bootstrap later)
│       ├── flux-system/      # flux bootstrap (after Forgejo)
│       ├── apps.yaml
│       ├── infrastructure.yaml
│       └── monitoring.yaml
├── infrastructure/
│   ├── home/                 # kubectl apply -k target (no HelmRelease)
│   ├── networking/
│   │   ├── cilium/           # HelmRelease for Flux
│   │   └── gateway/          # Cilium Gateway API
│   ├── storage/              # local-path provisioner
│   ├── controllers/
│   └── databases/
└── monitoring/

Apply (now)

kubectl apply -k infrastructure/home

That installs storage + the public Gateway. Cilium is already running; its HelmRelease is only for Flux.

Flux (later)

When Forgejo is up:

flux bootstrap git \
  --url=ssh://[email protected]:222/sirius/homek8s.git \
  --branch=master \
  --path=clusters/home

clusters/home/*.yaml already point at ./apps/home, ./infrastructure/home, and ./monitoring/controllers/home.