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).
2026-11-13 20:14:37 -05:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: osint-app
|
|
|
|
|
namespace: osint
|
|
|
|
|
labels:
|
|
|
|
|
app: osint-app
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: osint-app
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: osint-app
|
|
|
|
|
spec:
|
|
|
|
|
tolerations:
|
|
|
|
|
- key: dedicated
|
|
|
|
|
operator: Exists
|
|
|
|
|
effect: PreferNoSchedule
|
|
|
|
|
nodeSelector:
|
|
|
|
|
kubernetes.io/hostname: siriussec
|
|
|
|
|
initContainers:
|
|
|
|
|
# Wait for Postgres before alembic runs (the entrypoint migrates).
|
|
|
|
|
- name: wait-for-db
|
2026-11-13 21:43:58 -05:00
|
|
|
image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-58f71f5b4520
|
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).
2026-11-13 20:14:37 -05:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
|
command:
|
|
|
|
|
- python
|
|
|
|
|
- -c
|
|
|
|
|
- |
|
|
|
|
|
import os, socket, sys, time
|
|
|
|
|
host, port = os.environ.get("DB_HOST", "osint-db"), int(os.environ.get("DB_PORT", "5432"))
|
|
|
|
|
deadline = time.time() + 300
|
|
|
|
|
while time.time() < deadline:
|
|
|
|
|
try:
|
|
|
|
|
with socket.create_connection((host, port), timeout=3):
|
|
|
|
|
print("postgres is reachable"); sys.exit(0)
|
|
|
|
|
except OSError:
|
|
|
|
|
time.sleep(3)
|
|
|
|
|
sys.exit("postgres did not become reachable in 300s")
|
|
|
|
|
containers:
|
|
|
|
|
- name: app
|
2026-11-13 21:43:58 -05:00
|
|
|
image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-58f71f5b4520
|
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).
2026-11-13 20:14:37 -05:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
|
ports:
|
|
|
|
|
- containerPort: 8000
|
|
|
|
|
name: http
|
|
|
|
|
envFrom:
|
|
|
|
|
- configMapRef:
|
|
|
|
|
name: osint-env
|
|
|
|
|
env:
|
|
|
|
|
- name: DB_PASSWORD
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: osint-db
|
|
|
|
|
key: password
|
2026-11-13 21:06:43 -05:00
|
|
|
# Single-admin auth (app/auth.py). optional: true on purpose — a
|
|
|
|
|
# missing Secret must not block startup; the app then fails closed
|
|
|
|
|
# (admin routes 403 "admin auth not configured") while the public
|
|
|
|
|
# read-only HUD still serves.
|
|
|
|
|
- name: ADMIN_USER
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: osint-admin
|
|
|
|
|
key: ADMIN_USER
|
|
|
|
|
optional: true
|
|
|
|
|
- name: ADMIN_PASSWORD_HASH
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: osint-admin
|
|
|
|
|
key: ADMIN_PASSWORD_HASH
|
|
|
|
|
optional: true
|
|
|
|
|
- name: ADMIN_SESSION_SECRET
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: osint-admin
|
|
|
|
|
key: ADMIN_SESSION_SECRET
|
|
|
|
|
optional: true
|
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).
2026-11-13 20:14:37 -05:00
|
|
|
readinessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /api/health
|
|
|
|
|
port: 8000
|
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
|
periodSeconds: 15
|
|
|
|
|
failureThreshold: 6
|
|
|
|
|
livenessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /api/health
|
|
|
|
|
port: 8000
|
|
|
|
|
initialDelaySeconds: 90
|
|
|
|
|
periodSeconds: 30
|
|
|
|
|
failureThreshold: 5
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- name: snapshots
|
|
|
|
|
mountPath: /data/snapshots
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
cpu: 100m
|
|
|
|
|
memory: 256Mi
|
|
|
|
|
limits:
|
|
|
|
|
memory: 1Gi
|
|
|
|
|
volumes:
|
|
|
|
|
- name: snapshots
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: osint-camera-snapshots
|