- 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 versionChecking the Nomad agent information.
nomad agent-info... starting the agent in "dev" mode
sudo nomad agent -devnomad node statusnomad server members -detailedJust do a Ctrl - C
Initiate a job
nomad job initRun the job
nomad job run example.nomadCheck the jobs status
nomad job statusCheck the particular job status
nomad status examplenomad alloc status 178c6cddnomad alloc logs 178c6cdd redisnomad job plan example.nomadnomad job stop exampleIn a nutshell:
- servers manage state and make scheduling decisions
- client runs tasks
Starting Servers & Clients
nomad agent -config server.hclnomad agent -config client1.hcl
nomad agent -config client2.hclNomad 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