The cluster PG image built FROM postgres:16 resolved to Debian trixie, whose
postgresql-16-postgis-3 (3.7.0+pgdg13) cannot load against PG 16.15:
'undefined symbol: heap_datum_check'. CREATE EXTENSION postgis crashed the
server and crashlooped osint-app/osint-camera-service. Rebuild pinned to
postgres:16-bookworm (+pgdg12), verified CREATE EXTENSION postgis +
timescaledb + create_hypertable() by hand before re-tagging.
nats: pass -m 8222 so the monitoring/healthz endpoint the readiness probe hits
actually listens.
Also documents the stack + build/push/secret steps in apps/base/osint/README.md.
New namespace `osint` with the full dashboard stack ported from the Pi docker
compose file: TimescaleDB+PostGIS Postgres, NATS JetStream, FastAPI app,
ingester, camera-discovery service, TiTiler tile proxy, and the vendored news
pipeline (Scrapy scraper + Nous Portal summarizer).
- Images built amd64 (the Pi CI only builds arm64) and pushed to the Forgejo
registry as :amd64-c48788d4b614; nats/titiler mirrored there too so every
pod pulls from one host.
- All workloads pinned to siriussec (Gateway/Envoy co-location, local-path PVs).
- Postgres is a Deployment+PVC, not CNPG: the alembic chain needs postgis +
timescaledb extensions and create_hypertable().
- HTTPRoute osint.siriusdevops.com: /titiler prefix-stripped to TiTiler,
everything else to the app (incl. /ws/live).
- DB password is Secret osint-db, created out of band (not in git).
- Analyst model = meituan/longcat-2.5:free on Nous Portal (free tier).
- deployment-blog.yaml / service-blog.yaml: blog FastAPI on 8092, siriussec,
env from sirius-growth-blog-app + sirius-growth-blog-s3,
PUBLIC_BASE_URL=https://siriusgrowthsolutions.com/journal. No HTTPRoute: the
site nginx proxies /journal to this ClusterIP service.
- deployment.yaml: site 4285926 -> d44446c (nginx /journal proxy, nav menu).
- portal Deployment untouched.
The portal-api image gained Telegram-only operator alerts (phase 3C) but reads
TG_TOKEN/TG_CHAT at startup; unset, it logs one line and no-ops. Reuse the same
bot and secret the contact service already uses - no new secret, no value in git.
site :040d3e1d5c6bae57c7b4d5edd00b4a969bb8718d (deploy-site run 91,
success) loads style.css/portal.css/portal.js root-absolute so
/admin/leads and /admin/settings stop 404ing on /admin/css/… and
/admin/js/… and the Leads table renders. Registry digest
sha256:bd83baa6…ffcd. Portal pin untouched.
portal :0f156d2f17aab3461ba4c5d7d4d8988861b2b14b (deploy-portal run 87,
success) carries the zones API (bcdba9d), inline file disposition and the
last-message fields; registry digest sha256:90d9c89d...6643.
site :0b4a8c0a27c35855eab03ebaa23a7ab5229245a8 (deploy-site run 90, success)
is the admin split plus per-client zones/messages UI and the dashboard zone
filter with inline previews, and gates /admin/leads + /admin/settings in all
three nginx variants; registry digest sha256:ab680c5b...5adf.
Runs the published amd64 image forgejo.../sgs-leadgen:eef9358 with DATABASE_URL
from sirius-growth-portal-app and the contact bot's Telegram pair; /data on a
local-path PVC pins to siriussec, /tmp on an emptyDir so the root fs stays RO.
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.
Nothing in CI holds cluster credentials any more: every site image is pinned
by tag/digest in this repo and rolled by Flux, so the siriusdevops and
sirius-growth 'site-deployer' SA/Role/RoleBinding are dead. Dropping them from
the kustomizations lets Flux prune all six objects, which also revokes the
8760h tokens behind the KUBE_CONFIG action secrets (deleted separately, and
only after the pins were verified live).
piedmont never had a deployer.yaml: its CI identity (phs-site-deployer) was
created out-of-band and is removed by hand in the same change.
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.
Rewrites the stale README (Flux-later framing, two-node table, 127.0.0.1:8080
origin, dedicated=network gateway) against kubectl/curl output: node table with
siriussec/rpi/linode and their labels+taints, Cilium native routing over WG,
public origin 10.10.0.2:8080 with the single-gateway-node rule, internal
Gateways 8081/8084 on the bare IP, lab.internal DNS, a services table covering
every live workload, placement rules, and the clusters/home dead-tree warning.
First post-cutover deploy-site run (task 1732) built the image and then died
pushing it: docker only treats 127.0.0.0/8 as insecure by default, so
'Get "https://10.10.0.1:5000/v2/": http: server gave HTTP response to HTTPS
client'. Flag the daemon, not the job image, on both arm64 runners so no
workflow needs to know.
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).
The Pi's host Docker is no longer the arm64 job-container daemon. Both
forgejo-runner-arm64 and forgejo-runner-deploy-arm64 now run a privileged
docker:27-dind sidecar (--mtu=1420, socket on an emptyDir shared with the
runner, data-root on a PVC), the same shape as forgejo-runner-amd64.
- labels preserved verbatim: shared keeps docker-arm64/arm64/docker, deploy
keeps deploy-arm64 only; capacity 1 on both
- runner.ini moved from hostPath to the data PVC by copy, uuid preserved
(4e07c1e9... / a41aad73...); the deploy runner's register init container is
inverted into a guard so a missing file cannot burn a token and create a
second runner
- dind limits.memory 4Gi (measured peak 3.10GiB) and 2Gi for the deploy runner
so a CI run and a deploy cannot both claim the Pi's 7GiB
- static hostPath PVs pinned to rpi with Retain: dynamic local-path cannot
provision there (helper pod hardcoded to siriussec)
- docker CLI/buildx come from the dind image instead of the host's docker-static
- Pi registry additionally published on 10.10.0.1:5000 (out of band on the Pi)
- RpiDindDataRootFillingUp at 70%: the real cap, since a static PV does not
enforce its claim and kubelet_volume_stats_* does not exist here
Design and measured proof: docs/arm64-runner-dind.md (t_627c231c).
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.
The Job pod carried app=forgejo-runner, so every run matched itself and
logged a confusing skip. It now carries app=forgejo-prune; discovery is
unchanged (label app=forgejo-runner + a dind container).
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.
- 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.
Panel validation against the live Prometheus API caught three real faults:
- pod=~"forgejo-runner-.*" also matched the forgejo-runner-prune-* CronJob pods,
which are Completed and permanently not-Ready, so the not-Ready stat read 3.
- CNPG custom-query metrics carry namespace/pod from the scrape, not the
exporter's cluster label, so cluster="pg" matched nothing (empty panels).
- a missing paren in the memory-working-set expression (HTTP 400 from Prometheus).
Also make two legitimately-empty stats render a hard 0 (or vector(0)) instead of
'No data': not-Ready runner pods, and nodes with DiskPressure.
55/55 panel targets now return non-empty results.
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.