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
|
|
|
# TimescaleDB + PostGIS, single instance on local-path.
|
|
|
|
|
# NOT CloudNativePG: the app's alembic chain requires CREATE EXTENSION
|
|
|
|
|
# postgis AND timescaledb plus create_hypertable()/continuous aggregates, and
|
|
|
|
|
# this image (Dockerfile.pg, built amd64) is the exact Postgres the Pi stack
|
|
|
|
|
# ran. A CNPG cluster would need a custom CNPG-conformant Timescale image.
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: osint-db
|
|
|
|
|
namespace: osint
|
|
|
|
|
labels:
|
|
|
|
|
app: osint-db
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
# ReadWriteOnce PVC: old and new pod cannot both mount it.
|
|
|
|
|
strategy:
|
|
|
|
|
type: Recreate
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: osint-db
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: osint-db
|
|
|
|
|
spec:
|
|
|
|
|
tolerations:
|
|
|
|
|
- key: dedicated
|
|
|
|
|
operator: Exists
|
|
|
|
|
effect: PreferNoSchedule
|
|
|
|
|
nodeSelector:
|
|
|
|
|
kubernetes.io/hostname: siriussec
|
|
|
|
|
containers:
|
|
|
|
|
- name: postgres
|
2026-11-13 20:20:09 -05:00
|
|
|
image: forgejo.siriusdevops.com/sirius/osint-dashboard-pg:amd64-c48788d4b614-r2
|
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
|
|
|
|
|
args:
|
|
|
|
|
- -c
|
|
|
|
|
- shared_preload_libraries=timescaledb
|
|
|
|
|
- -c
|
|
|
|
|
- shared_buffers=1GB
|
|
|
|
|
- -c
|
|
|
|
|
- max_connections=100
|
|
|
|
|
ports:
|
|
|
|
|
- containerPort: 5432
|
|
|
|
|
name: postgres
|
|
|
|
|
env:
|
|
|
|
|
- name: POSTGRES_USER
|
|
|
|
|
value: osint
|
|
|
|
|
- name: POSTGRES_DB
|
|
|
|
|
value: osint_data
|
|
|
|
|
- name: PGDATA
|
|
|
|
|
value: /var/lib/postgresql/data/pgdata
|
|
|
|
|
- name: POSTGRES_PASSWORD
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: osint-db
|
|
|
|
|
key: password
|
|
|
|
|
readinessProbe:
|
|
|
|
|
exec:
|
|
|
|
|
command: ["pg_isready", "-U", "osint", "-d", "osint_data", "-h", "127.0.0.1"]
|
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
|
periodSeconds: 10
|
|
|
|
|
failureThreshold: 6
|
|
|
|
|
livenessProbe:
|
|
|
|
|
exec:
|
|
|
|
|
command: ["pg_isready", "-U", "osint", "-d", "osint_data", "-h", "127.0.0.1"]
|
|
|
|
|
initialDelaySeconds: 60
|
|
|
|
|
periodSeconds: 30
|
|
|
|
|
failureThreshold: 6
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- name: pgdata
|
|
|
|
|
mountPath: /var/lib/postgresql/data
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
cpu: 200m
|
|
|
|
|
memory: 512Mi
|
|
|
|
|
limits:
|
|
|
|
|
memory: 2Gi
|
|
|
|
|
volumes:
|
|
|
|
|
- name: pgdata
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: osint-pgdata
|