homek8s/apps/base/osint/camera-deployment.yaml
Lance Walters def2556ee7 apps(osint): ADMIN_COOKIE_SECURE=1 and the 84ea0a17b1af build
osint-dashboard master 84ea0a17b1af (PR #51) makes the session cookie Secure
when ADMIN_COOKIE_SECURE is truthy, because the tunnel's HTTP origin means
Envoy never lets X-Forwarded-Proto through as https. Set the flag in the
ConfigMap and pin the three app-image consumers to the rebuilt catalyst.
2026-11-13 21:17:28 -05:00

51 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: osint-camera-service
namespace: osint
labels:
app: osint-camera-service
spec:
replicas: 1
selector:
matchLabels:
app: osint-camera-service
template:
metadata:
labels:
app: osint-camera-service
spec:
tolerations:
- key: dedicated
operator: Exists
effect: PreferNoSchedule
nodeSelector:
kubernetes.io/hostname: siriussec
containers:
- name: camera-service
image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-84ea0a17b1af
imagePullPolicy: IfNotPresent
command: ["python", "app/run_camera_service.py"]
envFrom:
- configMapRef:
name: osint-env
env:
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: osint-db
key: password
volumeMounts:
- name: snapshots
mountPath: /data/snapshots
resources:
requests:
cpu: 50m
memory: 128Mi
limits:
memory: 512Mi
volumes:
# Shared with osint-app (same node, RWO): the app serves cached snapshots.
- name: snapshots
persistentVolumeClaim:
claimName: osint-camera-snapshots