apps(osint): deploy OSINT dashboard stack to k8s at osint.siriusdevops.com

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).
This commit is contained in:
Lance Walters 2026-11-13 20:14:37 -05:00
commit f290b3c457
19 changed files with 649 additions and 0 deletions

View file

@ -0,0 +1,62 @@
# Shared, non-secret runtime configuration for every OSINT workload.
# Secrets (Postgres password, Nous API key, FIRMS/AIS keys) are NOT here:
# * Postgres password -> Secret `osint-db` (created out of band, never in git)
# * API keys -> dashboard Keys page, stored in the `api_keys` table
apiVersion: v1
kind: ConfigMap
metadata:
name: osint-env
namespace: osint
data:
DB_HOST: osint-db
DB_PORT: "5432"
DB_NAME: osint_data
DB_USER: osint
NATS_URL: nats://osint-nats:4222
# SAR tile proxy, exposed same-origin under /titiler by the HTTPRoute.
TITILER_INTERNAL_URL: http://osint-titiler:8000
TITILER_PUBLIC_BASE: /titiler
TZ: America/New_York
OSINT_USER_AGENT: "osint-dashboard/1.0 (self-hosted; [email protected])"
# ── ingester ────────────────────────────────────────────────────────────
INGEST_INTERVAL: "300"
INGEST_EARTHQUAKES: "1"
INGEST_FIRES: "1"
FIRMS_DATASETS: "VIIRS_NOAA20_NRT,VIIRS_NOAA21_NRT"
FIRMS_BBOX: "-180,-60,180,75"
FIRMS_INTERVAL: "900"
VESSELAPI_BBOX: "25.5,55.4,27.3,57.2"
VESSELAPI_INTERVAL: "17280"
VESSELAPI_MAX_CALLS_PER_DAY: "5"
AISSTREAM_IN_APP: "1"
AISSTREAM_IN_INGEST: "0"
VESSELAPI_IN_APP: "0"
VESSELAPI_IN_INGEST: "1"
# ── camera discovery service ────────────────────────────────────────────
CAMERA_SOURCE_URLS: ""
CAMERA_SCRAPE_INTERVAL: "3600"
CAMERA_REQUEST_DELAY: "2.0"
CAMERA_MAX_PER_SOURCE: "20000"
NOMINATIM_URL: https://nominatim.openstreetmap.org
NOMINATIM_MIN_INTERVAL: "1.1"
SNAPSHOT_CACHE_DIR: /data/snapshots
SNAPSHOT_TTL_SECONDS: "300"
# ── news scraper ────────────────────────────────────────────────────────
LOG_LEVEL: INFO
NEWS_SCRAPE_INTERVAL_S: "10"
NEWS_SCRAPE_RUN_ON_START: "1"
# ── news summarizer (analyst) — Nous Portal, free tier model ────────────
NOUS_BASE_URL: https://inference-api.nousresearch.com/v1
SUMMARY_MODEL: meituan/longcat-2.5:free
BATCH_SIZE: "50"
NEWS_SUMMARIZE_INTERVAL_S: "900"
NEWS_SUMMARIZE_RUN_ON_START: "1"
NEWS_RECAP_HOUR: "23"
NEWS_RECAP_MINUTE: "0"
INCLUDE_FUTURES: "0"