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.
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: osint-nats
|
|
namespace: osint
|
|
labels:
|
|
app: osint-nats
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: osint-nats
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: osint-nats
|
|
spec:
|
|
tolerations:
|
|
- key: dedicated
|
|
operator: Exists
|
|
effect: PreferNoSchedule
|
|
nodeSelector:
|
|
kubernetes.io/hostname: siriussec
|
|
containers:
|
|
- name: nats
|
|
image: forgejo.siriusdevops.com/sirius/nats:2.10
|
|
imagePullPolicy: IfNotPresent
|
|
args: ["-js", "-m", "8222", "-sd", "/data"]
|
|
ports:
|
|
- containerPort: 4222
|
|
name: client
|
|
- containerPort: 8222
|
|
name: monitor
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /data
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 8222
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 64Mi
|
|
limits:
|
|
memory: 256Mi
|
|
volumes:
|
|
# JetStream is a transient bus here (compose had no volume either):
|
|
# events are written to Postgres by the consumer loop.
|
|
- name: data
|
|
emptyDir: {}
|