PR #54: get_recent_news() now ends at NOW() so future-dated event listings are no longer re-graded every interval, and the fallback can only pick blocks with score >= SUMMARY_FALLBACK_MIN_SCORE (40) instead of taking the top N blind.
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
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:
|
|
tolerations:
|
|
- key: dedicated
|
|
operator: Exists
|
|
effect: PreferNoSchedule
|
|
nodeSelector:
|
|
kubernetes.io/hostname: siriussec
|
|
containers:
|
|
- name: news-summarizer
|
|
image: forgejo.siriusdevops.com/sirius/osint-news-summarizer:amd64-fa745ee3f7ae
|
|
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
|