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 affinity: nodeAffinity: # Prefer the amd64 worker (linode) for these stateless CPU loops so # they stop drawing on the 15 W-powered ThinkPad. Preferred, not # required: if linode is absent they still schedule on siriussec. preferredDuringSchedulingIgnoredDuringExecution: - weight: 100 preference: matchExpressions: - key: kubernetes.io/hostname operator: In values: - linode # keeps these off the arm64 rpi (some of these images are amd64-only) nodeSelector: kubernetes.io/arch: amd64 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: {}