diff --git a/apps/base/osint/ingester-deployment.yaml b/apps/base/osint/ingester-deployment.yaml index 796f336..cfd2ce6 100644 --- a/apps/base/osint/ingester-deployment.yaml +++ b/apps/base/osint/ingester-deployment.yaml @@ -19,8 +19,22 @@ spec: - 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/hostname: siriussec + kubernetes.io/arch: amd64 containers: - name: ingester image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-915f6cbe25be diff --git a/apps/base/osint/nats-deployment.yaml b/apps/base/osint/nats-deployment.yaml index 772b076..52fe659 100644 --- a/apps/base/osint/nats-deployment.yaml +++ b/apps/base/osint/nats-deployment.yaml @@ -19,8 +19,22 @@ spec: - 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/hostname: siriussec + kubernetes.io/arch: amd64 containers: - name: nats image: forgejo.siriusdevops.com/sirius/nats:2.10 diff --git a/apps/base/osint/news-scraper-deployment.yaml b/apps/base/osint/news-scraper-deployment.yaml index c211ee8..22cfd07 100644 --- a/apps/base/osint/news-scraper-deployment.yaml +++ b/apps/base/osint/news-scraper-deployment.yaml @@ -19,8 +19,22 @@ spec: - 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/hostname: siriussec + kubernetes.io/arch: amd64 containers: - name: news-scraper image: forgejo.siriusdevops.com/sirius/osint-news-scraper:amd64-58f71f5b4520 diff --git a/apps/base/osint/news-summarizer-deployment.yaml b/apps/base/osint/news-summarizer-deployment.yaml index 163b6d0..647fdc8 100644 --- a/apps/base/osint/news-summarizer-deployment.yaml +++ b/apps/base/osint/news-summarizer-deployment.yaml @@ -19,8 +19,22 @@ spec: - 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/hostname: siriussec + kubernetes.io/arch: amd64 containers: - name: news-summarizer image: forgejo.siriusdevops.com/sirius/osint-news-summarizer:amd64-fe2b5df369d0