- Basic Stuff
- Start Agent
- Cluster Info
- Stop Agent
- Running a Job
- Modifying a Job
- Stopping a Job
- Clustering
- UI
Checking the version of Nomad. One of first things commonly done when starting up a new tool.
nomad version
Checking the Nomad agent information.
nomad agent-info
... starting the agent in "dev" mode
sudo nomad agent -dev
nomad node status
nomad server members -detailed
Just do a Ctrl - C
Initiate a job
nomad job init
Run the job
nomad job run example.nomad
Check the jobs status
nomad job status
Check the particular job status
nomad status example
nomad alloc status 178c6cdd
nomad alloc logs 178c6cdd redis
nomad job plan example.nomad
nomad job stop example
In a nutshell:
- servers manage state and make scheduling decisions
- client runs tasks
Starting Servers & Clients
nomad agent -config server.hcl
nomad agent -config client1.hcl
nomad agent -config client2.hcl
Nomad comes with a User Interface web portal allowing you to do all the same stuff the CLI does.
It runs on same address and port as the Nomad HTTP API under the path /ui