Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.49 KB

README.md

File metadata and controls

43 lines (26 loc) · 1.49 KB

AMQ on OpenShift + MQTT Client + Camel Quarkus Client

architecture

This has been tested on OpenShift 4.8, including Azure Red Hat OpenShift v4.8.

Install Operators

First, install the AMQ Broker operator and OpenShift Pipelines operator. You can do this through the OpenShift UI as an admin, or by executing the following command using the oc cli as a cluster-admin.

oc apply -k manifests/operators

Generate Certificates

For convenience, you can use the cert.sh script to generate certificates and add them to a Secret. It assumes you are logged in ahead of time with the oc cli so that it can get the apps router url from your cluster.

From a Mac or Linux terminal, run:

./cert.sh mypassword

Where mypassword is any password you would like to use for the keystore. This will use the Java keytool to generate a keystore and trustore, then encode them in a secret that will get added to the manifests/broker directory. This secret is already added to the .gitignore file, so it will not be pushed to your git repo.

Broker Instance

Once the operator is installed and you have generated your certificates/secret, you can create a Broker instance and the Topic.

oc apply -k manifests/broker

Build and Deploy Consumer Application

Once the broker is up and running, you can build and deploy the "amq-mqtt" consumer application.

oc apply -k manifests/consumer

This will kick off a small Tekton pipeline to build and deploy the app.