nomad
БесплатноБез исполняемых скриптовНе проверенHashiCorp Nomad is a workload orchestrator that schedules containers, VMs and standalone binaries across a cluster using HCL job files. Use when writing Nomad…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Nomad
Overview
Nomad (hashicorp/nomad) is a single-binary scheduler with servers (Raft consensus) and clients that run tasks through drivers (docker, exec, raw_exec, java, qemu). Jobs are HCL files with types service, batch, system and sysbatch. Checked against Nomad 2.0.7 (17 September 2026); job and agent files below pass nomad job validate and nomad config validate on that version. Note that the source license is BUSL 1.1 for 1.7 and later (not open source in the OSI sense; free for most self-hosted use).
Changes that break older tutorials: since 1.10 Vault and Consul integration use workload identity only (the old token-based agent settings are gone); periodic.cron is replaced by crons; server.retry_join and start_join directly inside server are deprecated in favour of the server_join block (removal in 2.1); system jobs support deployments since 2.0.
Instructions
Install and try
wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt install nomad
# macOS / Linuxbrew: brew tap hashicorp/tap && brew install hashicorp/tap/nomad
sudo nomad agent -dev # throwaway single-node server+client, UI on http://127.0.0.1:4646
nomad status && nomad node status
Run the dev agent as root on Linux so the client can fingerprint drivers and cgroups. It is for experiments only: no ACLs, no TLS, data in memory.
Server configuration
# /etc/nomad.d/server.hcl
datacenter = "dc1"
data_dir = "/opt/nomad/data"
server {
enabled = true
bootstrap_expect = 3
server_join {
retry_join = ["10.0.1.10", "10.0.1.11", "10.0.1.12"]
}
}
acl { enabled = true }
tls {
http = true
rpc = true
ca_file = "/opt/nomad/tls/nomad-agent-ca.pem"
cert_file = "/opt/nomad/tls/dc1-server-nomad.pem"
key_file = "/opt/nomad/tls/dc1-server-nomad-key.pem"
}
consul { address = "127.0.0.1:8500" }
vault {
enabled = true
default_identity { # servers sign a workload-identity JWT for each task
aud = ["vault.io"]
ttl = "1h"
}
}
telemetry { prometheus_metrics = true }
Check it with nomad config validate server.hcl. Create certificates with nomad tls ca create and nomad tls cert create -server, and bootstrap ACLs once with nomad acl bootstrap. Clients also need a vault block with address (and the Vault side needs a JWT auth backend named jwt-nomad by default) and a client { enabled = true } block.
Service job with canary, autoscaling and Vault secrets
# jobs/web.nomad.hcl
variable "image_tag" {
type = string
default = "1.4.2"
}
job "web" {
datacenters = ["dc1"]
type = "service"
update {
max_parallel = 1
min_healthy_time = "30s"
healthy_deadline = "5m"
auto_revert = true
canary = 1
}
group "web" {
count = 3
network {
port "http" { to = 8080 }
}
service {
name = "web"
port = "http"
provider = "consul"
check {
type = "http"
path = "/health"
interval = "10s"
timeout = "3s"
}
}
scaling { # group level; read by the Nomad Autoscaler agent, not by Nomad itself
enabled = true
min = 2
max = 10
policy {
evaluation_interval = "30s"
cooldown = "2m"
check "cpu_usage" {
source = "prometheus"
query = "avg(nomad_client_allocs_cpu_total_percent{task='app'})"
strategy "target-value" { target = 70 }
}
}
}
task "app" {
driver = "docker"
config {
image = "registry.northwind.io/web:${var.image_tag}"
ports = ["http"]
}
env {
PORT = "${NOMAD_PORT_http}"
ENVIRONMENT = "production"
}
vault { role = "web-app" } # token comes from workload identity (JWT login)
template {
data = <<-EOF
{{ with secret "secret/data/web/config" }}
DB_PASSWORD={{ .Data.data.db_pass }}
{{ end }}
EOF
destination = "secrets/env.txt"
env = true
}
resources {
cpu = 500 # MHz
memory = 256 # MB
}
}
}
}
A scaling block inside a task needs a label (Dynamic Application Sizing); horizontal scaling lives in the group and takes none. Neither is allowed in system jobs. Pass variables with nomad job run -var image_tag=1.4.3 jobs/web.nomad.hcl.
Periodic batch job
# jobs/backup.nomad.hcl
job "db-backup" {
datacenters = ["dc1"]
type = "batch"
periodic
Установить nomad в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл nomad?
HashiCorp Nomad is a workload orchestrator that schedules containers, VMs and standalone binaries across a cluster using HCL job files. Use when writing Nomad job specifications, running nomad job run and plan, configuring canary deployments, batch and periodic jobs, system jobs, autoscaling, Consul service registration, or Vault secrets in templates.
Как установить скилл nomad?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nomad запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic