Install the k8s cluster if not alreadly installed
1 | microk8s enable dns storage helm3 |
Pull the helm chart
1 | microk8s helm repo add truecharts https://charts.truecharts.org/ |
Modify the values.yaml file to set the configuration
1 | tar -xvf ./zigbee2mqtt-*.tgz |
1 | EXTERNAL_IP: A.B.C.D |
1 | image: |
Service
zigbee2mqtt-service.yaml
SERVICE_PORT: Port used to access the application
ZIGBEE_ADAPTER_PORT: Port used to allow access to an external zigbee controller
1 | apiVersion: v1 |
Firewall
sudo ufw allow from A.B.C.0/24 to any port ZIGBEE_ADAPTER_PORT proto tcp
sudo ufw allow from A.B.C.0/24 to any port SERVICE_PORT proto tcp
Configuration
https://www.reddit.com/r/homeassistant/comments/zxee4n/zigbee2mqtt_error_failed_to_connect_to_the/