fix: [nomad-step-4] S4.1 — nomad/jobs/agents.hcl (7 roles, llama, vault-templated bot tokens) (#955) #959
1 changed files with 18 additions and 16 deletions
|
|
@ -68,6 +68,24 @@ job "agents" {
|
|||
mode = "delay"
|
||||
}
|
||||
|
||||
# ── Health check ─────────────────────────────────────────────────────────
|
||||
# Script-based check matching docker-compose's pgrep healthcheck.
|
||||
# Group-level service with `task` attribute on the check to run the
|
||||
# script inside the agents container.
|
||||
service {
|
||||
name = "agents"
|
||||
provider = "nomad"
|
||||
|
||||
check {
|
||||
type = "script"
|
||||
task = "agents"
|
||||
command = "/usr/bin/pgrep"
|
||||
args = ["-f", "entrypoint.sh"]
|
||||
interval = "60s"
|
||||
timeout = "5s"
|
||||
}
|
||||
}
|
||||
|
||||
task "agents" {
|
||||
driver = "docker"
|
||||
|
||||
|
|
@ -177,22 +195,6 @@ FORGE_VAULT_TOKEN=seed-me
|
|||
EOT
|
||||
}
|
||||
|
||||
# ── Health check ───────────────────────────────────────────────────────
|
||||
# Script-based check matching docker-compose's pgrep healthcheck.
|
||||
# Nomad script checks run inside the container.
|
||||
service {
|
||||
name = "agents"
|
||||
provider = "nomad"
|
||||
|
||||
check {
|
||||
type = "script"
|
||||
command = "/usr/bin/pgrep"
|
||||
args = ["-f", "entrypoint.sh"]
|
||||
interval = "60s"
|
||||
timeout = "5s"
|
||||
}
|
||||
}
|
||||
|
||||
# Agents run Claude/llama sessions — need CPU + memory headroom.
|
||||
resources {
|
||||
cpu = 500
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue