Skip to content

colinbut/nomad-nomad-eh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nomad Nomad

Basic Stuff

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

Start Agent

... starting the agent in "dev" mode

sudo nomad agent -dev

Cluster Info

nomad node status
nomad server members -detailed

Stop Agent

Just do a Ctrl - C

Running a Job

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

Modifying a Job

nomad job plan example.nomad

Stopping a Job

nomad job stop example

Clustering

In a nutshell:

  1. servers manage state and make scheduling decisions
  2. client runs tasks

Starting Servers & Clients

nomad agent -config server.hcl
nomad agent -config client1.hcl
nomad agent -config client2.hcl

UI

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

http://localhost:4646