snippetbashTip
nomad — Distributed, highly available, datacenter-aware scheduler. More information: <https://developer.hash
Viewed 0 times
commanddistributeddatacenterawarehighlyclinomadavailable
Problem
How to use the
nomad command: Distributed, highly available, datacenter-aware scheduler. More information: <https://developer.hashicorp.com/nomad/commands>.Solution
nomad — Distributed, highly available, datacenter-aware scheduler. More information: <https://developer.hashicorp.com/nomad/commands>.Show the status of nodes in the cluster:
nomad node statusValidate a job file:
nomad job validate {{path/to/file.nomad}}Plan a job for execution on the cluster:
nomad job plan {{path/to/file.nomad}}Run a job on the cluster:
nomad job run {{path/to/file.nomad}}Show the status of jobs currently running on the cluster:
nomad job statusShow the detailed status information about a specific job:
nomad job status {{job_name}}Follow the logs of a specific allocation:
nomad alloc logs {{alloc_id}}Show the status of storage volumes:
nomad volume statusCode Snippets
Show the status of nodes in the cluster
nomad node statusValidate a job file
nomad job validate {{path/to/file.nomad}}Plan a job for execution on the cluster
nomad job plan {{path/to/file.nomad}}Run a job on the cluster
nomad job run {{path/to/file.nomad}}Show the status of jobs currently running on the cluster
nomad job statusContext
tldr-pages: common/nomad
Revisions (0)
No revisions yet.