1
0
Fork 0

h-a: Schedule Piper, Whisper, Mosquitto with HA

Using pod affinity rules, we can schedule the ancillary processes for
Home Assistant to run on the same node as the main server.
pull/74/head
Dustin 2025-07-27 18:39:55 -05:00
parent 7b440c44ec
commit 32666aa628
3 changed files with 36 additions and 0 deletions

View File

@ -55,6 +55,18 @@ spec:
app.kubernetes.io/name: mosquitto app.kubernetes.io/name: mosquitto
app.kubernetes.io/part-of: home-assistant app.kubernetes.io/part-of: home-assistant
spec: spec:
affinity:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- home-assistant
topologyKey: kubernetes.io/hostname
containers: containers:
- name: mosquitto - name: mosquitto
image: docker.io/library/eclipse-mosquitto:2.0.15 image: docker.io/library/eclipse-mosquitto:2.0.15

View File

@ -36,6 +36,18 @@ 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:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- home-assistant
topologyKey: kubernetes.io/hostname
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,18 @@ 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:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- home-assistant
topologyKey: kubernetes.io/hostname
containers: containers:
- name: whisper - name: whisper
image: docker.io/rhasspy/wyoming-whisper:1.0.0 image: docker.io/rhasspy/wyoming-whisper:1.0.0