save
This commit is contained in:
parent
0b324b5b91
commit
ed2a0f2b46
1 changed files with 20 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue