49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: otbr-deployment
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: otbr
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: otbr
|
|
spec:
|
|
hostNetwork: true # CRITICAL for Thread discovery
|
|
containers:
|
|
- name: otbr
|
|
image: ghcr.io/ownbee/hass-otbr-docker:latest
|
|
securityContext:
|
|
privileged: true
|
|
env:
|
|
- name: DEVICE
|
|
value: "/dev/ttyACM0" # Verify this on your host
|
|
- name: BAUDRATE
|
|
value: "460800"
|
|
- name: BACKBONE_IF
|
|
value: "ens18" # Your node's network interface
|
|
- name: OTBR_WEB_PORT
|
|
value: "30090"
|
|
- name: OTBR_REST_PORT
|
|
value: "30091"
|
|
- name: FIREWALL
|
|
value: "0"
|
|
- name: NAT64
|
|
value: "0"
|
|
volumeMounts:
|
|
- mountPath: /dev/ttyACM0
|
|
name: otbr-zbt2
|
|
- mountPath: /data
|
|
name: otbr-data
|
|
volumes:
|
|
- name: otbr-zbt2
|
|
hostPath:
|
|
path: /dev/serial/by-id/usb-Nabu_Casa_ZBT-2_DCB4D90C0AF4-if00
|
|
type: CharDevice
|
|
- name: otbr-data
|
|
hostPath:
|
|
path: /root/kubernetes/homeassistant/data/otbr/thread
|