news-scraper, news-summarizer, ingester and nats were hard-pinned to siriussec (the ThinkPad, on a 15 W USB-C supply that brownouts under load). Replace the hostname pin with: * nodeSelector kubernetes.io/arch=amd64 (keeps them off the arm64 rpi) * preferred nodeAffinity weight 100 for kubernetes.io/hostname=linode still falling back to siriussec if linode is down. No PVCs, images, resources or taints touched.
57 lines
1.6 KiB
YAML
57 lines
1.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: osint-ingester
|
|
namespace: osint
|
|
labels:
|
|
app: osint-ingester
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: osint-ingester
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: osint-ingester
|
|
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: ingester
|
|
image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-915f6cbe25be
|
|
imagePullPolicy: IfNotPresent
|
|
command: ["python", "app/run_ingester.py"]
|
|
envFrom:
|
|
- configMapRef:
|
|
name: osint-env
|
|
env:
|
|
- name: DB_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: osint-db
|
|
key: password
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
limits:
|
|
memory: 512Mi
|