1
0
Fork 0

h-a/{piper,whisper}: Prefer x86_64 nodes

Without a node affinity rule, Kubernetes applies equal weight to the
"big" x86_64 nodes and the "small" aarch64 ones.  Since we would really
rather Piper and Whisper _not_ run on a Raspberry Pi, we need the rule
to express this.
pull/78/head
Dustin 2025-08-07 10:31:10 -05:00
parent ea4e45e479
commit 2b109589c2
2 changed files with 20 additions and 0 deletions

View File

@ -36,6 +36,16 @@ spec:
app.kubernetes.io/name: piper app.kubernetes.io/name: piper
app.kubernetes.io/part-of: home-assistant app.kubernetes.io/part-of: home-assistant
spec: spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
containers: containers:
- name: piper - name: piper
image: docker.io/rhasspy/wyoming-piper:1.3.2 image: docker.io/rhasspy/wyoming-piper:1.3.2

View File

@ -36,6 +36,16 @@ spec:
app.kubernetes.io/name: whisper app.kubernetes.io/name: whisper
app.kubernetes.io/part-of: home-assistant app.kubernetes.io/part-of: home-assistant
spec: spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
containers: containers:
- name: whisper - name: whisper
image: docker.io/rhasspy/wyoming-whisper:1.0.0 image: docker.io/rhasspy/wyoming-whisper:1.0.0