DEV Community

Alex Spinov
Alex Spinov

Posted on

Nomad Has a Free API — Simple Orchestration Beyond Kubernetes

HashiCorp Nomad is a workload orchestrator that deploys containers, VMs, and binaries. If Kubernetes is too complex, Nomad gives you 80% of the value with 20% of the complexity.

What Is Nomad?

Nomad schedules and deploys workloads across a cluster. It handles Docker containers, Java apps, binaries, and even Windows services.

Features:

  • Multi-workload (Docker, exec, Java, QEMU)
  • Single binary
  • Multi-datacenter
  • Batch scheduling
  • Service mesh (with Consul)
  • Free and open source

Quick Start

# Install
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt install nomad

# Dev mode
nomad agent -dev
Enter fullscreen mode Exit fullscreen mode

UI: http://localhost:4646

Job File

job "web" {
  group "app" {
    count = 3
    task "server" {
      driver = "docker"
      config {
        image = "nginx:latest"
        ports = ["http"]
      }
      resources {
        cpu    = 256
        memory = 128
      }
    }
    network {
      port "http" { to = 80 }
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

REST API

# List jobs
curl http://localhost:4646/v1/jobs

# Get job status
curl http://localhost:4646/v1/job/web

# Submit job
nomad job run web.nomad.hcl

# Scale
curl -X POST http://localhost:4646/v1/job/web/scale \
  -d '{"Count":5,"Target":{"Group":"app"}}'
Enter fullscreen mode Exit fullscreen mode

Use Cases

  1. Simple orchestration — Kubernetes alternative
  2. Legacy apps — deploy non-containerized workloads
  3. Batch processing — scheduled jobs
  4. Edge — lightweight cluster management
  5. Multi-cloud — federate across providers

Need web data at scale? Check out my scraping tools on Apify or email spinov001@gmail.com for custom solutions.

Top comments (0)