apiVersion: apps/v1 kind: Deployment metadata: name: osint-news-summarizer namespace: osint labels: app: osint-news-summarizer spec: replicas: 1 selector: matchLabels: app: osint-news-summarizer template: metadata: labels: app: osint-news-summarizer spec: imagePullSecrets: - name: forgejo-pull 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: news-summarizer # amd64-fb5285df7f38 = sirius/osint-dashboard@fb5285d (PR #72, merged): # the map phase runs concurrently (SUMMARY_MAP_CONCURRENCY) and a # non-retryable Nous rejection raises NousAPIError instead of being # swallowed, so a wedged analyst fails loudly instead of idling for # nine days on silent empty completions (card t_22334588 / t_2ae9f0c0). image: forgejo.siriusdevops.com/sirius/osint-news-summarizer:amd64-fb5285df7f38 imagePullPolicy: IfNotPresent # Loop: batch the last window, call Nous Portal, write summaries. command: ["python", "run_news_summarizer.py"] envFrom: - configMapRef: name: osint-env env: - name: DB_PASSWORD valueFrom: secretKeyRef: name: osint-db key: password resources: requests: cpu: 50m memory: 128Mi limits: memory: 512Mi