This demo showcases Nomads ability to run diverse workloads on a cluster. Specifically it uses the docker and exec task drivers.
- Turing Pi V1 with 7 Raspberry Pi CM3+ 8GB modules running Debian.
- Shelly Bulb RGB
Clone the repo
git clone git@github.com:lhaig/tlo.git
cd tlo
Install Nomad onto your cluster.
Deploy the Nomad jobs in this order
- nomad job run jobs/traefik.nomad.hcl
- nomad job run jobs/prometheus-server.nomad.hcl
- nomad job run jobs/prometheus-node-exporter.nomad.hcl
- nomad job run jobs/grafana-server.nomad.hcl
- nomad job run jobs/godad.nomad.hcl
Install your light and make note of the ipaddress for you light.
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