Skip to content

suse-edge/akri-mqtt-discovery-handler

Repository files navigation

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

About

Mqtt discovery handler for akri

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages