lhaig / tlo

Turn Lights on Demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Turn On the Light with Nomad Demo.

This demo showcases Nomads ability to run diverse workloads on a cluster. Specifically it uses the docker and exec task drivers.

Hardware

Software

Setup

Clone the repo

git clone git@github.com:lhaig/tlo.git
cd tlo

Install Nomad

Install Nomad onto your cluster.

Deploy the Nomad jobs in this order

  1. nomad job run jobs/traefik.nomad.hcl
  2. nomad job run jobs/prometheus-server.nomad.hcl
  3. nomad job run jobs/prometheus-node-exporter.nomad.hcl
  4. nomad job run jobs/grafana-server.nomad.hcl
  5. nomad job run jobs/godad.nomad.hcl

Install your RGB Light

Install your light and make note of the ipaddress for you light.

Run the demo jobs

export the address of your Nomad server export NOMAD_ADDR=IPADDRESS:4646

Check the status of your connection to Nomad

nomad server members
nomad node status
nomad job status"

Run the light.nomad.hcl job file replace IPADDRESSOFLIGHT with your light ip

nomad job run -var="url=IPADDRESSOFLIGHT" -var="turn=on" jobs/light.nomad.hcl

This should turn the light on.

Have fun

About

Turn Lights on Demo

License:GNU General Public License v2.0


Languages

Language:HCL 78.7%Language:Shell 21.3%