Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 966 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 966 Bytes

Akri MQTT Discovery Handler

A simple Discovery Handler for MQTT based devices, aims to be a reference implementation for MQTT akri proposal.

Deploy

  helm upgrade akri akri-helm-charts/akri \
  $AKRI_HELM_CRICTL_CONFIGURATION \
  --set custom.discovery.enabled=true  \
  --set custom.discovery.image.repository=ghcr.io/myusername/mqtt-discovery-handler \
  --set custom.discovery.image.tag=v1 \
  --set custom.discovery.name=akri-mqtt-discovery 

Build

docker buildx build --platform linux/arm64,linux/amd64 -t ghcr.io/myuser/mqtt-discovery-handler:v1 -f Dockerfile.discovery-handler .

Note: this does not seem to be executing correctly once built

Run Locally

sudo -E RUST_LOG=info DISCOVERY_HANDLERS_DIRECTORY=/var/lib/akri AGENT_NODE_NAME=nodename $HOME/.cargo/bin/cargo run

Apply Configuration

kubectl apply -f deploy/akri-mqtt-configuration.yaml