Operator addendum: internal services must be reachable by bare IP+port, because
a phone cannot edit /etc/hosts. A hostname-scoped route does not match
`Host: 10.10.0.2:8081` (Envoy 404), and a hostname-less `PathPrefix /` cannot
share a listener with it — so hubble-ui gets its own listener (`hubble-ui`, port
8082) with a route that sets no hostnames. http://10.10.0.2:8082/ and
http://hubble.lab.internal:8082/ both hit the UI.
Firewall: siriussec nft table now matches `dport { 8081, 8082 }` and starts with
`destroy table` so re-running the unit replaces (not appends) the rules; the rpi
ufw script is generalised to a PORTS list and inserts each port above the LAN
catch-all. Both hosts applied and verified before the listener was programmed.
docs: internal gateway section, host-firewall README.
- values: hubble.relay.enabled + hubble.ui.enabled (1 replica each, pinned to
siriussec, modest requests/limits), hubble.metrics list (flow/drop/tcp/
port-distribution/icmp/httpV2/dns) + ServiceMonitors labelled
release=kube-prometheus-stack for agent, relay and operator (:9963).
prometheus.serviceMonitor.trustCRDsExist because the CRDs come from the
separate monitoring release.
- hubble.metrics.dashboards: chart's Hubble dashboards into Grafana via the
grafana_dashboard sidecar label.
- HTTPRoute hubble-ui in kube-system on Gateway internal/internal#http-internal
(port 8081) for hostname hubble.lab.internal. No public hostname, no tunnel
ingress entry; the host firewall on 8081 is the boundary.
Also flag clusters/home as not-reconciled: the bootstrapped flux-system
Kustomization reads ./clusters/homek8s, which is why the monitoring entry there
had never been created.
- clusters/homek8s/monitoring.yaml: the 'monitoring' Flux Kustomization was
declared only under clusters/home, which the bootstrapped flux-system
Kustomization never reads (its path is ./clusters/homek8s), so it had never
been created. Declare it in the tree that actually reconciles.
- monitoring/controllers/home: HelmRepository + HelmRelease (chart pinned
92.14.0), values.yaml via configMapGenerator, Grafana admin from the
monitoring/grafana-admin Secret (out of band, never in git).
- Everything pinned to siriussec, Prometheus on a 10Gi local-path PVC with
7d AND 8GB retention caps; alertmanager off; no remote write.
- internal gateway listener now accepts routes from any namespace; the security
boundary is the host firewall, not the namespace.
- host-firewall/: nft table + oneshot unit for siriussec and the ufw script for
rpi that close :8081 to everything but 10.10.0.0/24 and 10.244.0.0/16.
§9.2 now states the cause as shared-NVMe contention from CI build I/O (etcd
wal_fsync 158 >8.192s / 2,518 >2.048s of 14.81M, worst stall 10.39s, every
stall hour carrying CI I/O) and cites d5d1d28 for the widened window plus the
operator's move into Flux. The static-pod controller-manager/scheduler
restarts and the one CI-unexplained stall hour are called out as open.
Refreshes the live Flux revision, the Kustomization count and the operator pod.
Shared-NVMe contention on the T480, not a uniformly slow disk: etcd WAL fsync
has 158 samples >8.192s over 41d while 99.9% land <=32ms, and all 8 hours with
>=2s stalls have CI build I/O on the same PM991 NVMe (worst single stall
10.39s, dind data-root and forgejo-data share /dev/nvme0n1p3 with the WAL).
Each stall blows the operator's 5s lease-renewal HTTP timeout and
controller-runtime fatals with "leader election lost" (223 restarts in 45d).
Lease 60s / renew 45s rides out a 10.4s stall instead of restarting the
operator; safe at replicas: 1, there is no second holder to split-brain
against. CNPG's flags are integer seconds and it has no resource-lock-timeout
flag, unlike the Cilium operator.
The operator was installed by hand, so a kubectl patch would be lost on the
next reinstall. Vendor the pinned 1.30.0 release manifest under
infrastructure/databases/base and own it with its own Flux Kustomization
(prune: false -- the bundle carries the 11 CNPG CRDs, and pruning those would
delete every Cluster). The patch also declares the pre-existing live deltas
that upstream does not ship: the overlay API env (10.10.0.2:6443), the
500m/512Mi limits and the 3min startup probe -- adopting upstream raw would
have silently reverted all three.
Single-node etcd on the T480's PM991 NVMe shows WAL fsync spikes >8s under
dind build I/O. apiserver stalls then blow the operator's 5s lease-renewal
HTTP timeout and it fatals with 'Leader election lost, shutting down'
(204 restarts in 41d). Lease 60s / renew 45s / lock timeout 20s rides out
a stall instead of restarting the operator.
The until=72h filter reclaimed 0 B against a 74 GB cache on the Pi's docker
29 daemon (proven by running the prune manually). --keep-storage 20GB
reclaimed 53 GB and leaves a warm cache for the next site/portal build.
Volumes are deliberately never pruned: CI's target/SDK/Gradle volumes are
unused between runs but essential.
Container removal on the Pi measured ~10 min for 48 containers with a ci job
live; 30 minutes would kill the run half-way through the 61 GB image prune.
- init container runs as root: kubelet creates the hostPath /data as root:root
and the runner image's default user cannot write runner.ini there.
- container.options --memory 3g on both Pi runners: two concurrent jobs must not
take the 8 GiB Pi (already using swap) to OOM. Caps the job container only.
- forgejo-runner-prune CronJob: exited containers >48h, images >168h, builder
cache >72h, so the single 917G / volume stops climbing.
deploy-site.yml must run on the Pi (127.0.0.1:5000 registry, Garage on host
network, host docker socket) but the Pi's only runner also serves every
runs-on: docker job in the instance. An onionwire Rust ci build therefore held
the single docker slot while the sirius-growth deploy sat in 'waiting'.
Adds a second runner instance on rpi declaring only the deploy-arm64 label,
with its own hostPath-backed registration (/opt/siriusdevops/runner-deploy/data)
so a pod restart reuses it instead of burning a single-use runner token.
The site repo's CI used to ssh to the Pi and run docker there. It now rolls the
k8s Deployments through the API, so it needs an identity limited to
get/list/patch on deployments in this namespace (same pattern as sirius-growth).
Linode VPSs are shut down. The Gateway listener has to be co-located with the
backend pods (hostNetwork Envoy returns 503 for cross-node backends), so all
public workloads now schedule on siriussec and the tunnel origin points there.
- nodeSelector linode -> siriussec (piedmont, sirius-growth, siriusdevops)
- siriusdevops site/contact now pull rebuilt images from the Forgejo registry
(the old :dev tags existed only on the dead VPS containerd)
FastAPI portal on 8091 behind /api/portal, image pinned to the API
commit 406f25c and its manifest digest. Route sits after /api/contact
and before the catch-all. Env comes from the sirius-growth-portal-app
Secret (DB URL, session secret, admin creds, Garage S3 keys); nothing
secret is in git.
The site repo's CI rolls the Deployment after pushing a new image, using a
kubeconfig stored as a repo secret. The token came from a ServiceAccount that
only existed because it was created by hand; declare it so a cluster rebuild
does not silently break deploys. Namespace-scoped, deployments only,
get/list/patch.
Serves the handyman site from the cluster instead of the Pi's dead
nginx/registry/Garage stack. The 78 /photos/ paths the site requests are
already baked into assets/portfolio/, so the image serves them via an
nginx alias and the Garage bucket is no longer a runtime dependency.
Image: forgejo.siriusdevops.com/sirius/phs-site:latest (public package).
alex3305/forgejo-runner-dind ships an amd64 binary in its arm64 manifest,
so the Pi failed with 'exec /usr/local/bin/forgejo-runner: exec format
error'. That took pi-runner (the only runner declaring the bare 'docker'
label) offline and stalled every runs-on: docker job.
The dind data root was emptied out of band (most likely a hand rm -rf
during the Forgejo 503 fix at ~22:34 UTC on 2026-09-18), which wiped
node:20-bullseye from the docker:27-dind sidecar's imagedb. With
force_pull unset (default false) act_runner treats a failed pull as
best-effort and the job dies in 2s with 'No such image' - a silent
failure no workflow can see or fix.
Setting force_pull: true under container: makes each job verify/re-pull
node:20-bullseye. Trade-off: one manifest check per job, and a Docker
Hub outage would then fail jobs a warm local image could have served.
node:20-bullseye is required regardless (actions/checkout is a JS action)
so we do not change the job image to dodge this.
Evidence: ConfigMap forgejo-runner-config amd64.toml had no force_pull
(key confirmed via kubectl on the Pi). The stale Error pod
forgejo-runner-amd64-59fbb7bfc4-rj2jp (6d17h, 0/2 containers) is left
for a separate cleanup card - it sits on a different overlay and is not
the cause, but should be gc'd.
Co-authored-by: Hermes Agent <[email protected]>
Clients outside the cluster (WireGuard spokes: phone, SG VPS, laptop) could
reach node IPs, the API server and pod IPs but not ClusterIPs: Cilium
swallowed the service packets on the hub before any route applied, because
bpf-lb-external-clusterip defaulted to false.
Set bpf.lbExternalClusterIP: true so the HelmRelease renders
bpf-lb-external-clusterip=true.
Cilium 1.20.1's operator refuses to create the Gateway controller when a
required CRD lacks v1:
CRD "referencegrants.gateway.networking.k8s.io" does not have version "v1"
The cluster's Gateway API CRDs predate v1.5.x and only serve referencegrants
v1beta1. Vendor the v1.5.1 standard channel (referencegrants, tlsroutes,
backendtlspolicies, grpcroutes, listenersets etc. all at v1) and manage it
with a dedicated Flux Kustomization with prune=false so CRDs are never
auto-deleted.
gatewayAPI.hostNetwork.nodes.matchLabels was 'gateway: "true"' (matches
siriussec only), while envoy.nodeSelector is
'node-role.kubernetes.io/gateway: "true"' (matches linode only). The
Gateway listener was scheduled for host-network on a node where Envoy
does not run, so no 8080 listener was ever programmed and the public
Gateway had no dataplane on linode.
Align the hostNetwork selector to the Envoy's actual node label so the
listener binds on linode.