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).
This commit is contained in:
Hermes Platform Engineer
2026-07-28 12:58:19 +00:00
parent 7ca919b7c7
commit 2f1ae311f7

View File

@@ -58,9 +58,9 @@ spec:
image: ghcr.io/home-assistant/home-assistant:2026.7.4 image: ghcr.io/home-assistant/home-assistant:2026.7.4
resources: resources:
requests: requests:
memory: "512Mi" memory: "256Mi"
limits: limits:
memory: "1Gi" memory: "512Mi"
ports: ports:
- containerPort: 8123 - containerPort: 8123
volumeMounts: volumeMounts:
@@ -101,6 +101,16 @@ spec:
- name: configuration - name: configuration
mountPath: /config-cm mountPath: /config-cm
readOnly: true readOnly: true
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- raspberrypi
hostNetwork: true hostNetwork: true
volumes: volumes:
- name: config - name: config