From ed2a0f2b464c2edfd6f32561ef2b0900568daf1d Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Thu, 11 Dec 2025 20:19:59 +0000 Subject: [PATCH] save --- homeassistant/homeassistant.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/homeassistant/homeassistant.yml b/homeassistant/homeassistant.yml index c5ebd72..20dbbbf 100644 --- a/homeassistant/homeassistant.yml +++ b/homeassistant/homeassistant.yml @@ -60,24 +60,44 @@ spec: labels: app: homeassistant spec: + # Ensure it runs on the correct node with USB access nodeSelector: kubernetes.io/hostname: mist + containers: - name: homeassistant image: ghcr.io/home-assistant/home-assistant:stable + + # Required for Zigbee USB device access + securityContext: + privileged: true + ports: - name: http containerPort: 8123 + volumeMounts: - name: ha-data mountPath: /config + + # Mount Zigbee USB stick (stable ID path) + - name: zigbee-stick + mountPath: /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_b054318db4a0ef11a724a5a361ce3355-if00-port0 + env: - name: TZ value: "Europe/London" + volumes: - name: ha-data persistentVolumeClaim: claimName: homeassistant-pvc + + # Stable path to Zigbee USB device + - name: zigbee-stick + hostPath: + path: /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_b054318db4a0ef11a724a5a361ce3355-if00-port0 + type: CharDevice --- ############################################## # Service