This repository contains the cloud side deployment we for the AMQ Online IoT setup at EclipseCon Europe 2019.
Before deploying the configuration in this repository, you need to install either AMQ Online and AMQ Streams, or EnMasse and Strimzi. You will also need to configure the IoT infrastructure of AMQ Online.
Note: It is not possible to directly deploy the YAML files. Some of the files
need to be updated with the proper passwords. File which need to be updated
have the suffix .in
. If you fill in the information, and rename them to .yaml
,
then you can simply do oc apply -f deploy
.
Register the gateway and set credentials:
hat device create ttn-gateway
hat cred set-password ttn-gateway gateway <password>
Create a new "integration" for your Things Network account:
- Type
- HTTP
- URL
-
https://iot-lorawan-adapter-enmasse-infra.apps.<my.cluster>/ttn
- Authentication header:
-
echo "Basic $(echo -n "gateway@<k8s-ns>.iot:<password>" | base64 -w0)"
Each sensor needs to be registered with Hono as well:
hat device create <device-eui> '{"via":["ttn-gateway"]}'
e.g.:
hat device create 0123456789ABCDEF '{"via":["ttn-gateway"], "defaults":{"deviceAlias": "Device #X"}}'
This repository sets up OpenShift to build a bunch of other projects: