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:
|
labels:
|
||||||
app: homeassistant
|
app: homeassistant
|
||||||
spec:
|
spec:
|
||||||
|
# Ensure it runs on the correct node with USB access
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: mist
|
kubernetes.io/hostname: mist
|
||||||
|
|
||||||
containers:
|
containers:
|
||||||
- name: homeassistant
|
- name: homeassistant
|
||||||
image: ghcr.io/home-assistant/home-assistant:stable
|
image: ghcr.io/home-assistant/home-assistant:stable
|
||||||
|
|
||||||
|
# Required for Zigbee USB device access
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 8123
|
containerPort: 8123
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: ha-data
|
- name: ha-data
|
||||||
mountPath: /config
|
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:
|
env:
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: "Europe/London"
|
value: "Europe/London"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: ha-data
|
- name: ha-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: homeassistant-pvc
|
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
|
# Service
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue