From 2b109589c2f64b3c43af7c37fc8ea1c6fdc7ad4a Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 7 Aug 2025 10:31:10 -0500 Subject: [PATCH] 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. --- home-assistant/piper.yaml | 10 ++++++++++ home-assistant/whisper.yaml | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/home-assistant/piper.yaml b/home-assistant/piper.yaml index bd850f0..450f4a1 100644 --- a/home-assistant/piper.yaml +++ b/home-assistant/piper.yaml @@ -36,6 +36,16 @@ spec: app.kubernetes.io/name: piper app.kubernetes.io/part-of: home-assistant spec: + affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + preference: + matchExpressions: + - key: kubernetes.io/arch + operator: In + values: + - amd64 containers: - name: piper image: docker.io/rhasspy/wyoming-piper:1.3.2 diff --git a/home-assistant/whisper.yaml b/home-assistant/whisper.yaml index 863879f..08dace2 100644 --- a/home-assistant/whisper.yaml +++ b/home-assistant/whisper.yaml @@ -36,6 +36,16 @@ spec: app.kubernetes.io/name: whisper app.kubernetes.io/part-of: home-assistant spec: + affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + preference: + matchExpressions: + - key: kubernetes.io/arch + operator: In + values: + - amd64 containers: - name: whisper image: docker.io/rhasspy/wyoming-whisper:1.0.0