Nomad

From Leo's Notes
Revision as of 00:20, 16 February 2021 by Leo (talk | contribs) (Initial Content)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This page was last edited on 16 February 2021, at 00:20.

HasiCorp Nomad

Cheat sheet

Allocations are like pods, it contains one or more 'tasks'

Tasks are just containers

Job files contain all the information about the deployment.

Start an agent nomad agent -dev -bind 0.0.0.0 -log-level INFO
Show node status nomad node status
Show connected members nomad server members
Create an example job nomad job init
Run a job nomad job run example.nomad
Show a job's status nomad job status example
Examine an allocation nomad alloc status allocation-id
Examine an allocation's logs nomad alloc logs allocation-id task-name

Other

Consul integration

Start consul: consul agent -dev

Nomad appears to just detect this automatically, like magic.