From 2f1ae311f790a5c53e4341e71e6a1b56e94b1cfc Mon Sep 17 00:00:00 2001 From: Hermes Platform Engineer Date: Tue, 28 Jul 2026 12:58:19 +0000 Subject: [PATCH] fix(homeassistant): reduce memory requests to 256Mi, add node affinity for raspberrypi Node roger-nucbox-evo-x2 is at 3.78% memory free causing home-assistant pods to flap Pending/Running. Reduce resource requests to fit within cluster capacity and prefer scheduling on raspberrypi (63% mem free). --- homeassistant/homeassistant.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/homeassistant/homeassistant.yaml b/homeassistant/homeassistant.yaml index 527fc1a..87a5b7f 100644 --- a/homeassistant/homeassistant.yaml +++ b/homeassistant/homeassistant.yaml @@ -58,9 +58,9 @@ spec: image: ghcr.io/home-assistant/home-assistant:2026.7.4 resources: requests: - memory: "512Mi" + memory: "256Mi" limits: - memory: "1Gi" + memory: "512Mi" ports: - containerPort: 8123 volumeMounts: @@ -101,6 +101,16 @@ spec: - name: configuration mountPath: /config-cm readOnly: true + affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + preference: + matchExpressions: + - key: kubernetes.io/hostname + operator: In + values: + - raspberrypi hostNetwork: true volumes: - name: config