#HashiCorp Nomad
Simple, flexible workload orchestrator.
#Overview
Nomad orchestrates containers, VMs, and other workloads.
| Feature | Description |
|---|---|
| Multi-runtime | Docker, exec, Java, etc. |
| Lightweight | Single binary |
| Federation | Multi-cluster support |
| Integrations | Consul, Vault |
#Job File
hcl
1job "webapp" {
2 datacenters = ["dc1"]
3 type = "service"
4
5 group "web" {
6 count = 3
7
8 network {
9 port "http" { to = 80 }
10 }
11
12 task "nginx" {
13 driver = "docker"
14
15 config {
16 image = "nginx:latest"
17 ports = ["http"]
18 }
19
20 resources {
21 cpu = 500
22 memory = 256
23 }
24 }
25 }
26}#Commands
bash
1# Run job
2nomad job run webapp.nomad
3
4# Status
5nomad job status webapp
6
7# Stop
8nomad job stop webapp[!TIP] Pro Tip: Choose Nomad over K8s for simpler, multi-runtime orchestration!