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:
- start Nomad locally
nomad agent -dev
- build and run the operator
cd operator
go build
./operator
- Register an example application to nomad
nomad job run example.nomad
- Open a browser to http://localhost:4646 to see the jobs in the UI