Installing Mosquitto to process sensor data
Mosquitto is an open source broker that implements the MQTT protocol, and it’s lightweight too. It was designed to be used with low-power sensors and devices. This makes Mosquitto suitable for edge computing and IoT applications. Mosquitto provides a lightweight channel of communication for edge devices and uses the publisher/subscriber pattern to send and read messages, but it is not persistent. We are going to use Redis later to give this missing temporary persistence for the data queues. Now, let’s move to install Mosquitto in our edge cluster, located at the far edge. Remember that this single node cluster is using an ARM device. To deploy Mosquitto, follow these steps:
- Create a ConfigMap to listen over all the available network interfaces:
$ cat <<EOF | kubectl apply -f - apiVersion: v1 kind: ConfigMap metadata: name: mosquitto-configmap data: mosquitto-config: | &...