nomad
Use when the user asks about HashiCorp Nomad, Nomad job specs (service, batch, system, periodic, parameterized), ACLs, Nomad Variables, Vault or Consul…
от j4flmao★ 47 звёзд на GitHub
Установить nomad в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Nomad
Purpose
Deploy and operate HashiCorp Nomad for workload scheduling, service orchestration, batch processing, and canary deployments with Consul and Vault integration.
Agent Protocol
Trigger
Exact user phrases: "nomad", "nomad job", "nomad cluster", "nomad server", "nomad client", "nomad ACL", "nomad autoscaler", "nomad pack", "nomad CSI", "nomad batch job", "nomad periodic job", "nomad scaling", "nomad canary", "nomad drain", "nomad template", "nomad service discovery", "nomad connect", "consul connect nomad".
Input Context
- Nomad cluster size and topology.
- Integration with Consul and Vault.
- Job types: service, batch, system, periodic, parameterized.
- Networking: host, bridge, Consul Connect.
- Storage: host volumes or CSI.
Output Artifact
Nomad job specification (HCL) or cluster configuration.
Response Format
Nomad HCL job specification. No preamble.
Completion Criteria
- Job specification written with correct type, task groups, tasks.
- Networking configured (host, bridge, or Consul Connect sidecar).
- Secrets from Vault or template stanza configured.
- Update strategy (canary, rolling, blue-green) defined.
- Scaling policy defined.
- ACL policies and namespace configuration set.
- Monitoring with Nomad autoscaler and Consul health checks.
Max Response Length
400 lines.
Quick Start
Write job.hcl → nomad job plan job.hcl (dry run) → nomad job run job.hcl → nomad job status my-job → nomad alloc status <alloc-id> → nomad job promote my-job for canary.
Decision Tree: Job Types
| Job Type | Use Case | Lifecycle | Restart Policy |
|---|---|---|---|
| service | Web apps, API servers, long-running | Runs continuously | Always restart on failure |
| batch | Data processing, migrations | Runs to completion | Retry on failure, then fail |
| system | Log shippers, node-exporter, CNI | Runs on every client | Always restart, runs everywhere |
| periodic | Cron jobs, scheduled tasks | Batch job run on cron | Each run is a batch job instance |
| parameterized | CI/CD jobs, ad-hoc tasks | Dispatched with payload | Each dispatch is a batch job |
Core Workflow
Step 1: Nomad Cluster Configuration
# server.hcl
server {
enabled = true
bootstrap_expect = 3
data_dir = "/opt/nomad/data"
}
# Client configuration
client {
enabled = true
node_class = "general"
servers = ["10.0.1.10:4647", "10.0.1.11:4647", "10.0.1.12:4647"]
host_volume "docker-data" {
path = "/data/docker"
read_only = false
}
host_volume "prometheus-data" {
path = "/data/prometheus"
read_only = false
}
}
# Consul integration
consul {
address = "10.0.1.20:8500"
server_service_name = "nomad"
client_service_name = "nomad-client"
auto_advertise = true
}
# Vault integration
vault {
enabled = true
address = "https://vault.service.consul:8200"
create_from_role = "nomad-cluster"
}
# ACL configuration
acl {
enabled = true
}
# Audit logging
audit {
enabled = true
}
Step 2: Service Job with Canary
# webapp.hcl
job "webapp" {
datacenters = ["dc1"]
namespace = "production"
type = "service"
group "web" {
count = 3
network {
mode = "bridge"
port "http" {
to = 8080
}
}
service {
name = "webapp"
port = "http"
provider = "consul"
tags = ["production", "web"]
check {
type = "http"
path = "/healthz"
interval = "10s"
timeout = "2s"
}
check_restart {
limit = 3
grace = "30s"
ignore_warnings = false
}
}
task "web" {
driver = "docker"
config {
image = "myorg/webapp:${NOMAD_ALLOC_INDEX}"
ports = ["http"]
volumes = [
"local/config.yaml:/etc/webapp/config.yaml",
]
}
template {
data = <<EOH
server:
port: {{ env "NOMAD_PORT_http" }}
environment: {{ key "environments/production/name" }}
database:
url: {{ with secret "secret/data/webapp" }}{{ .Data.data.database_url }}{{ end }}
EOH
destination = "local/config.yaml"
}
resources {
cpu = 500
memory = 256
}
env {
LOG_LEVEL = "info"
NODE_NAME = "${node.unique.name}"
}
}
update {
max_parallel = 1
canary = 1
min_healthy_time = "30s"
healthy_deadline = "5m"
progress_deadline = "10m"
auto_revert = true
auto_promote = false
stagger = "30s"
}
restart {
attempts = 3
delay = "15s"
interval = "30m"
mode = "fail"
}
reschedule {
attempts = 10
interval = "168h"
delay = "30s"
delay_function = "exponential"
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/nomad-advanced.md
- references/nomad-fundamentals.md
- references/nomad-integrations.md
- references/nomad-jobs.md
- references/nomad-operations.md
- references/nomad-production.md
- references/nomad-security-hardening.md
FAQ
Что делает скилл nomad?
Use when the user asks about HashiCorp Nomad, Nomad job specs (service, batch, system, periodic, parameterized), ACLs, Nomad Variables, Vault or Consul integration, CSI and host volumes, canary updates, node drain, or the Nomad Autoscaler. Produces Nomad job files and cluster operations. Not for Kubernetes (use kubernetes) or Consul service mesh (use consul).
Как установить скилл nomad?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nomad запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…