Also see:
Execute the following commands to deploy Eclipse Kura:
oc new-project kura --display-name 'Eclipse Kura'
oc new-app --file=https://raw.githubusercontent.com/ctron/kura-emulator/tutorial-ece2018/openshift/kura-data-persistence.yml -p GIT_BRANCH=tutorial-ece2018
First of all the Kura instance needs to be registered with Eclipse Hono:
curl -X POST -H 'Content-Type: application/json' -d '{"device-id": "4711"}' https://hono-service-device-registry-https-hono.[[my.cluster.tld]]/registration/DEFAULT_TENANT
Next we need to connect the Kura gateway to Hono:
admin / adminEncode gzip = falseEnable Default Subscriptions = falseBirth Cert Policy = Disable publishingPayload Encoding = Simple JSONConnect Auto-on-startup = trueStore Housekeeper-interval = 30Enable Rate Limit = falseBroker-url = mqtt://hono-adapter-mqtt-vertx.hono.svc:1883/Topic Context Account-Name = telemetry/DEFAULT_TENANTUsername = sensor1@DEFAULT_TENANTPassword = hono-secretClient-id = 4711Fetch the kura-app.yml file:
curl -LO https://ctron.github.io/src/gateway/kura/kura-app.yml
Execute the following commands to set up the pipeline build:
oc project kura
oc new-app jenkins-ephemeral
oc create -f kura-app.yml
Wait until the Jenkins deployment is ready. Then navigate to “Build” -> “Pipelines” in the OKD web UI. Open the pipeline “kura-app-generator-1” and start the pipeline by pressing the “Start Pipeline” button.
After the build is complete, you should see a new Kura application named “Generator #1” in the Kura Web UI. As the Kura Web UI sometimes doesn’t refresh, it might be necessary to manually reload the Web UI.