homek8s/apps/base
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sirius DevOps e4b1ac59a9 feat(osint): alert when the analyst stops writing briefs
The 2026-11-25..12-04 outage was invisible: deploy/osint-news-summarizer
stayed Running with restarts 0 and INFO batch lines while article_summaries
froze for nine days, and the scraper kept articles fresh (61.5k rows, newest
within minutes). The app has no /metrics endpoint, so add a small read-only
Postgres exporter and two Prometheus rules.

- osint-analyst-exporter (ns osint): stdlib HTTP server on :9187 serving
  osint_analyst_last_success_timestamp_seconds (max article_summaries.
  batch_timestamp), osint_ingest_last_article_timestamp_seconds (max
  articles.timestamp) and osint_analyst_exporter_up. Runs the pinned
  summarizer image (python3 + psycopg2), non-root, read-only rootfs,
  clusterIP Service + ServiceMonitor (release=kube-prometheus-stack).
- NetworkPolicy: one port-scoped ingress rule, monitoring -> :9187. Nothing
  else in monitoring can reach osint.
- monitoring/controllers/home/osint-analyst.yaml: OsintAnalystStale
  (>1h, 30m, warning, with an absent() arm so a dead exporter cannot read as
  healthy) and OsintIngestAliveButNoBrief (articles <2h old while summaries
  >2h old, 10m, warning). Both route through the default Telegram receiver.
2026-12-04 23:18:20 -05:00
..
customer1 infra(netpol): default-deny ingress+egress for the six app namespaces 2026-11-27 02:19:10 -05:00
forgejo fix(netpol): allow cnpg-system operator to read instance status on :8000 2026-12-04 14:25:37 -05:00
metabase secops(f6): de-privilege CI job containers + runner uid, add Pod Security labels (#54) 2026-11-27 05:42:39 +00:00
netsec netsec(collector): gzip on rotate so 960 MiB holds ~72-100 h of flows 2026-11-27 01:09:57 -05:00
osint feat(osint): alert when the analyst stops writing briefs 2026-12-04 23:18:20 -05:00
piedmont infra(netpol): default-deny ingress+egress for the six app namespaces 2026-11-27 02:19:10 -05:00
secops secops(f6): de-privilege CI job containers + runner uid, add Pod Security labels (#54) 2026-11-27 05:42:39 +00:00
sirius-growth fix(netpol): allow cnpg-system operator to read instance status on :8000 2026-12-04 14:25:37 -05:00
siriusdevops site(lab): pin siriusdevops-site to the /lab rewrite image 2026-12-04 14:36:34 -05:00
README.md Initial HomeK8s tree matching lab GitOps layout. 2026-09-10 23:38:04 -04:00

apps/base

One directory per app (namespace, workload, service, HTTPRoute). Overlays in apps/home select what this cluster runs.

HTTPRoutes should parentRefs the Gateway:

parentRefs:
  - name: public
    namespace: gateway-system