Nomad Operator Example

Repostiory to go along with my The Operator Pattern in Nomad blog post.

Usage

If you have tmux installed, you can run start.sh to start the demo; it will start nomad, build the operator, and start it for you, and give you the next command to run the demo app. Exit and cleanup by running stop.sh

Otherwise:

  1. start Nomad locally

nomad agent -dev
  1. build and run the operator

cd operator
go build
./operator
  1. Register an example application to nomad

nomad job run example.nomad
  1. Open a browser to http://localhost:4646 to see the jobs in the UI

GitHub

View Github