Skip to content

Latest commit

 

History

History
 
 

emitter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

First run Emitter in docker to generate a EMITTER_LICENSE. (Note that this is not a software license key.)

docker run -d --name emitter -p 8080:8080 --restart=unless-stopped emitter/server

List the docker logs to see a randomly generated EMITTER_LICENSE.

docker logs emitter
2019/12/10 06:40:16 [service] unable to find a license, make sure 'license' value is set in the config file or EMITTER_LICENSE environment variable
2019/12/10 06:40:16 [license] generated new license: RfBEIAngTSCjWuEMrmsFe3qgYTWJiM7N9iZJsRtq8sjrD8OdGJ3QitnOkmzQXMWxFQ1o2nqdn5731Pe4s4PF1rME37CBnwYB:2
2019/12/10 06:40:16 [license] generated new secret key: aV3hzU01-SCF0wbnDdpXKCyxT4OB5Gad

Copy the new license into broker.yaml and start the broker and service.

kubectl create namespace iot
kubectl create -f broker.yaml
kubectl create -f service.yaml

List the services to obtain the IP address of the Emitter load balancer.

 % kubectl --namespace iot get service emitter
 NAME      TYPE           CLUSTER-IP       EXTERNAL-IP     PORT(S) AGE
 emitter   LoadBalancer   10.111.110.157   172.217.14.164  80:30790/TCP,443:30705/TCP   8m40s

You can now use the IP address to access the Emitter UI. In the above example you would go to http://172.217.14.164/keygen. From there you can create channel keys, which allow you to secure individual channels and start using Emitter.

You can now proceed with the Emitter documentation.