https://github.com/colinbut/nomad-nomad-eh
Hashicorp's Nomad example
https://github.com/colinbut/nomad-nomad-eh
hashicorp hashicorp-nomad nomad nomad-cluster nomad-configuration nomad-job nomad-jobs
Last synced: about 2 months ago
JSON representation
Hashicorp's Nomad example
- Host: GitHub
- URL: https://github.com/colinbut/nomad-nomad-eh
- Owner: colinbut
- Created: 2018-10-31T20:29:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-15T21:55:47.000Z (over 6 years ago)
- Last Synced: 2025-02-01T14:46:10.504Z (4 months ago)
- Topics: hashicorp, hashicorp-nomad, nomad, nomad-cluster, nomad-configuration, nomad-job, nomad-jobs
- Language: HCL
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nomad Nomad
* [Basic Stuff](#basic-stuff)
* [Start Agent](#start-agent)
* [Cluster Info](#cluster-info)
* [Stop Agent](#stop-agent)
* [Running a Job](#running-a-job)
* [Modifying a Job](#modifying-a-job)
* [Stopping a Job](#stopping-a-job)
* [Clustering](#clustering)
* [UI](#ui)Checking the version of Nomad. One of first things commonly done when starting up a new tool.
```bash
nomad version
```Checking the Nomad agent information.
```bash
nomad agent-info
```... starting the agent in "dev" mode
```bash
sudo nomad agent -dev
``````bash
nomad node status
``````bash
nomad server members -detailed
```Just do a `Ctrl - C`
__Initiate a job__
```bash
nomad job init
```__Run the job__
```bash
nomad job run example.nomad
```__Check the jobs status__
```bash
nomad job status
```__Check the particular job status__
```bash
nomad status example
``````bash
nomad alloc status 178c6cdd
``````bash
nomad alloc logs 178c6cdd redis
``````bash
nomad job plan example.nomad
``````bash
nomad job stop example
```In a nutshell:
1) servers manage state and make scheduling decisions
2) client runs tasks__Starting Servers & Clients__
```bash
nomad agent -config server.hcl
``````bash
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
http://localhost:4646