apps(osint): place stateless CPU workers on the amd64 linode node
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.
This commit is contained in:
parent
19fd7be914
commit
b55ec826c9
4 changed files with 60 additions and 4 deletions
|
|
@ -19,8 +19,22 @@ spec:
|
||||||
- key: dedicated
|
- key: dedicated
|
||||||
operator: Exists
|
operator: Exists
|
||||||
effect: PreferNoSchedule
|
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:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: siriussec
|
kubernetes.io/arch: amd64
|
||||||
containers:
|
containers:
|
||||||
- name: ingester
|
- name: ingester
|
||||||
image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-915f6cbe25be
|
image: forgejo.siriusdevops.com/sirius/osint-dashboard:amd64-915f6cbe25be
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,22 @@ spec:
|
||||||
- key: dedicated
|
- key: dedicated
|
||||||
operator: Exists
|
operator: Exists
|
||||||
effect: PreferNoSchedule
|
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:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: siriussec
|
kubernetes.io/arch: amd64
|
||||||
containers:
|
containers:
|
||||||
- name: nats
|
- name: nats
|
||||||
image: forgejo.siriusdevops.com/sirius/nats:2.10
|
image: forgejo.siriusdevops.com/sirius/nats:2.10
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,22 @@ spec:
|
||||||
- key: dedicated
|
- key: dedicated
|
||||||
operator: Exists
|
operator: Exists
|
||||||
effect: PreferNoSchedule
|
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:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: siriussec
|
kubernetes.io/arch: amd64
|
||||||
containers:
|
containers:
|
||||||
- name: news-scraper
|
- name: news-scraper
|
||||||
image: forgejo.siriusdevops.com/sirius/osint-news-scraper:amd64-58f71f5b4520
|
image: forgejo.siriusdevops.com/sirius/osint-news-scraper:amd64-58f71f5b4520
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,22 @@ spec:
|
||||||
- key: dedicated
|
- key: dedicated
|
||||||
operator: Exists
|
operator: Exists
|
||||||
effect: PreferNoSchedule
|
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:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: siriussec
|
kubernetes.io/arch: amd64
|
||||||
containers:
|
containers:
|
||||||
- name: news-summarizer
|
- name: news-summarizer
|
||||||
image: forgejo.siriusdevops.com/sirius/osint-news-summarizer:amd64-fe2b5df369d0
|
image: forgejo.siriusdevops.com/sirius/osint-news-summarizer:amd64-fe2b5df369d0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue