Both contact APIs now have amd64 build+push pipelines:
sirius-growth/.forgejo/workflows/deploy-contact.yml (contact-api/)
and sirius/websites/.forgejo/workflows/deploy-phs-contact.yml
(phs-contact-api/). Each printed the tag for its first run, so the
@sha256: pins (which existed only because there was no build path)
become ordinary :<sha> tags an operator can bump.
docs/site-image-pinning.md: drop the 'no CI build path' section and
record the two workflows in the pins table.
Replace ':latest' + imagePullPolicy: Always on all seven site images with a
pinned tag (or digest) and IfNotPresent, so the image a Deployment runs is
chosen by this repo and rolled by Flux, not by CI patching restartedAt.
Every pin is the image that was already running, so the change is a no-op for
visitors: each pinned tag's manifest/config digest equals the running pod's
imageID (siriusdevops-* f0dde2f4, growth-site ea306b7, growth-portal d9e558c4,
phs-site 5b590cd).
sirius-growth-contact and phs-contact have no CI build path (no workflow has
ever pushed anything but :latest for them), so they are pinned by @sha256:
digest rather than inventing a pipeline; documented in
docs/site-image-pinning.md along with the operator flow.
kube-prometheus-stack's kubernetes-storage group ships five rules; four of
them (both severities of KubePersistentVolumeFillingUp and of
KubePersistentVolumeInodesFillingUp) select kubelet_volume_stats_*. Those
series have no producer here: kubelet v1.36.4 404s on /metrics/volumes on all
three nodes (404s since kubelet 1.34, kubernetes/kubernetes#133847) and
count(kubelet_volume_stats_used_bytes) returns 0 series. The rules loaded fine
and reported health=ok/active=false, which reads as 'no PVC is filling' when
nothing can ever fire.
Disabled per rule via defaultRules.disabled (not by dropping the group): the
group's fifth alert, KubePersistentVolumeErrors, uses kube-state-metrics'
kube_persistentvolume_status_phase, which is live (40 series), so it stays.
Verified by rendering the chart with these values: group kubernetes-storage
now contains exactly one rule.
kubelet_volume_stats_* was an ALPHA metric set served from kubelet's
/metrics/volumes endpoint; that endpoint returns 404 on every node of this
cluster (kubelet v1.36.4 — upstream loss in 1.34, kubernetes#133847), and
/metrics carries no volume-stats series. RunnerDindPvcHighWatermark and
RunnerDindPvcCritical therefore could never fire while showing as healthy.
Per-PVC bytes are not measurable here and no scrape config can change that,
so the pair is replaced by RunnerDindDiskHighWatermark (80%) and
RunnerDindDiskCritical (90%): root-filesystem usage on nodes that actually
run a forgejo-runner pod, which is the filesystem holding the dind data-root
under /opt/local-path-provisioner. New arm64 dind PVCs are covered as soon
as their runner is scheduled; nodes without runners (linode) do not
duplicate the generic disk-capacity group.
Also corrects the cause in docs, the dashboard notes and the prune CronJob
comment (it is not a hostPath quirk, the endpoint is gone).
Design + proof for moving both arm64 Forgejo runners off the Pi's host
Docker socket onto in-cluster dind. No cutover in this commit.
Measured on rpi in a temporary runner-poc namespace (deleted): dind starts
overlay2 on ext4 with --mtu=1420, pulls node:20-bullseye 15s and
rust:1.98-bookworm 30s, builds the real sirius-growth Dockerfile.cluster in
12s arm64 / 13s amd64 under qemu, and a ci.yml-shaped Rust job runs in 27s
vs 28s on the host daemon (cargo 25.69 vs 25.56s). Peak pod RSS 3.10 GiB.
Three blocking findings: a dynamic local-path PVC cannot be provisioned on
rpi (helper-pod nodeSelector is hardcoded to siriussec), the Pi registry is
bound to 127.0.0.1 only so deploy-site's Pi-image push fails from dind, and
the 512Mi memory limit would OOM the daemon on the first build.
Records the two corrected premises (capacity flags are a no-op on buildx
0.20.1; kubelet exports no volume_stats_* on this cluster) and the one-line
manual run.
- every count-style stat that can legitimately have no series now ends in
'or vector(0)', so an empty result renders 0 instead of 'No data' (that bit
the Pending-pods stat the moment the one Pending pod went away)
- no grafana_folder annotation: the sidecar's API reload 401s (Grafana's live
admin password is the out-of-band one; the Secret is the first-boot seed), so
the dashboards are imported by Grafana's file provider, which has no
per-dashboard folder option and puts them in General. The annotation described
a path the boards never take.
- validate_panels.py lives next to build.py: reads the panel PromQL out of the
provisioned ConfigMap and queries Prometheus, so 'every panel returns data' is
a command, not a claim. 55/55 targets pass.
Dashboards (uid forgejo-runners, cnpg-postgres, home-lab-workloads) live as
ConfigMaps generated from monitoring/controllers/home/dashboards/build.py and are
loaded by the kube-prometheus-stack grafana sidecar.
Postgres was not scraped at all before this: add a hand-written PodMonitor per
CNPG cluster (release=kube-prometheus-stack, which is what this Prometheus's
podMonitorSelectorNilUsesHelmValues default requires) plus
spec.monitoring.customQueriesConfigMap on both Clusters. enablePodMonitor stays
false — deprecated in CNPG 1.27 and it gives no control over labels.
pg-actions-queries.yaml adds the Forgejo Actions queue/outcome/last_online
metrics that only the forgejo database can answer.
prometheus-node-exporter is no longer pinned to siriussec: the arm64 runner's
jobs are host containers on rpi, so the Pi's root filesystem is the disk that
matters there and kubelet cannot see it.
docs/monitoring-dashboards.md documents the PromQL, the exporter GRANT and the
known unknowns (arm64 per-job breakdown, hostPath PVs have no kubelet volume
stats, single-instance replication, no backups).
Records what persists (sqlite DB on a 5Gi local-path PVC, pinned
GF_SECURITY_SECRET_KEY), that provisioned dashboards still win over UI edits,
that the Secret is only the first-boot seed, the reset-admin-password recovery
path, and the one-off rollingUpdate patch the Recreate transition needed.
503 after exactly 5.000s, including from the Pi own 127.0.0.1 - not a stuck
listener. Envoy config dump shows identical listeners on both nodes, so the
fault was node placement, not config. Label removed from rpi: one gateway node.
Record the three-vantage-point matrix, the nft accept counters, the blackbox
Probe/PrometheusRule and the four negatives.
Records what now persists (sqlite DB on a 5Gi local-path PVC, pinned
GF_SECURITY_SECRET_KEY), that provisioned dashboards still win over UI edits,
that the Secret is only the first-boot seed (the DB owns the password after
that), the reset-admin-password recovery path, and the one-off rollingUpdate
patch the Recreate transition needed.
WireGuard clients apply the tunnel DNS to the whole device, so the hub
resolver answers lab.internal authoritatively and forwards everything else:
- dnsmasq on rpi, bound to lo/wg0/wg-remote only, 10.10.0.1 + 10.20.0.2
- grafana.lab.internal, hubble.lab.internal -> 10.10.0.2 (hosts file, one
line per record)
- ufw: 53 allowed from 10.10.0.0/24, 10.20.0.0/24, 10.244.0.0/16; dropped
everywhere else, inserted above the LAN catch-all
- docs: zone, per-client instructions (phone is a linode-hub spoke), rollback
rpi carried node-role.kubernetes.io/gateway=true, so cilium-envoy bound 8080/8081/8084
there too. Its Envoy completes TCP to a backend pod on siriussec but never finishes
the request: every hit on 10.10.0.1:8081/8084 hung 5s and returned 503, even from the
Pi own 127.0.0.1, while 10.10.0.2 answered in ms. Clients that tried either address
saw the dashboards flap. Remove the label from rpi: one gateway node, one address.
The Gateway status.addresses still lists every node InternalIP (cilium#29060 ignores
spec.addresses) - it is not a VIP; only 10.10.0.2 serves.
Add blackbox-exporter + Probe (8081, 8084 every 30s) + PrometheusRule alerts so a
regression is visible in the stack instead of on a phone. Give the internal_gw nft
accept rules counters so an allowed request is provable.
- internal-wireguard-services §10: Hubble verification log (HR Ready, rendered
hubble.metrics list, relay connected to all 3 agents, 23/23 scrape targets up,
flow/drop/TCP/ICMP/PolicyVerdict counters non-zero, headless-browser service
map with 64.7 flows/s and 3/3 nodes, LAN + internet negatives, regression).
Records the port cycle: 8082 is held on rpi by the leftover handyman-site
Docker container (and 8083 by its nginx), so the listener must be checked free
on EVERY cilium-envoy node, and notes that only 10.10.0.2 answers (Envoy on a
node without the backend 503s after 5s).
- gateway-hubble-ui.yaml: stop asserting a bind error for 8084 — 8084 was
verified free on both nodes and binds; the comment now explains the rule
without claiming a false fact.
- cluster-overview: internal gateway section + namespaces (monitoring, hubble
pods, the second gateway).
Cilium binds every Gateway listener on 0.0.0.0 on EVERY gateway node, and the Pi
still runs leftover Docker site containers: handyman-site holds 127.0.0.1:8082
and its nginx holds 127.0.0.1:8083 (a 127.0.0.1 bind still blocks a 0.0.0.0
one). Binding 8082 there made xDS reject the listener on rpi
("cannot bind '0.0.0.0:8082': Address already in use" at ~2/s) and restarted
cilium-envoy on the node that fronts the public ingress — the UI worked or not
depending on which node answered.
8084 measured free on both gateway nodes (rpi, siriussec) before the change.
Firewall moved with it: siriussec nft dport set { 8081, 8084 }, rpi ufw trio for
8084 inserted above the LAN catch-all and the 8082 rules deleted.
URL: http://10.10.0.2:8084/ (bare IP, no /etc/hosts) — same as Grafana on 8081.
A phone cannot edit /etc/hosts, so it sends Host: 10.10.0.2:8081, matches no
.lab.internal route and gets a 404 from Envoy. With no hostnames on the route
any Host on the internal listener matches, so http://10.10.0.2:8081/ serves
Grafana and the named URL keeps working. Port 8081 stays Grafana-only; docs now
state the bare-IP rule and the phone-path tests.
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.
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.
§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.