Remove host volume from Nomad job — unblocks placement on autobox
All checks were successful
Build and Deploy DevOpsDash / build-image (push) Successful in 31s

The devops-mcp-data host volume is not yet configured on autobox.i80.dk,
causing 'missing compatible host volumes' placement failure.

Comment out the volume + volume_mount blocks so the job can schedule
immediately. Knowledge catalog files are accessed via MCP proxy for now.

Instructions to re-enable (when ready):
  Add to /etc/nomad.d/client.hcl on autobox:
    host_volume "devops-mcp-data" {
      path      = "/opt/devops-mcp/data"
      read_only = false
    }
  Then: mkdir -p /opt/devops-mcp/data && systemctl restart nomad

Also: switch auth to HARBOR_ROBOT_TOKEN pattern (matches devops-mcp.nomad),
add force_pull=true, set provider=consul.
This commit is contained in:
Henrik Jess Nielsen
2026-05-09 16:48:06 +02:00
parent 13cc4bf2e5
commit 70418bc45b

View File

@@ -14,62 +14,71 @@ job "devops-dash" {
port "http" {}
}
volume "devops-mcp-data" {
type = "host"
read_only = true
source = "devops-mcp-data"
}
# host volume disabled until autobox is configured.
# To enable: add to /etc/nomad.d/client.hcl on autobox:
# host_volume "devops-mcp-data" {
# path = "/opt/devops-mcp/data"
# read_only = false
# }
# Then: mkdir -p /opt/devops-mcp/data && systemctl restart nomad
#
# volume "devops-mcp-data" {
# type = "host"
# read_only = true
# source = "devops-mcp-data"
# }
task "devops-dash" {
driver = "docker"
volume_mount {
volume = "devops-mcp-data"
destination = "/data"
read_only = true
}
# volume_mount {
# volume = "devops-mcp-data"
# destination = "/data"
# read_only = true
# }
config {
image = "registry.i80.dk/gitea/devops-dash:latest"
ports = ["http"]
image = "registry.i80.dk/gitea/devops-dash:latest"
ports = ["http"]
force_pull = true
auth {
username = "robot$gitserver"
password_env = "REGISTRY_TOKEN"
server_address = "registry.i80.dk"
username = "robot$gitserver"
password = "${HARBOR_ROBOT_TOKEN}"
}
}
template {
data = <<EOF
REGISTRY_TOKEN={{ key "harbor/robot/token" }}
EOF
destination = "secrets/env.sh"
data = <<EOH
HARBOR_ROBOT_TOKEN="{{ key "harbor/robot/token" }}"
EOH
destination = "secrets/registry.env"
env = true
}
env {
PORT = "${NOMAD_PORT_http}"
HOST = "0.0.0.0"
REDIS_URL = "redis://192.168.15.124:6379"
DEVOPS_MCP_URL = "http://devops-mcp.i80.dk"
DEVOPS_MCP_URL = "https://devops-mcp.i80.dk"
DATA_DIR = "/data"
PYTHONUNBUFFERED = "1"
}
resources {
cpu = 100
memory = 128
cpu = 200
memory = 256
}
service {
name = "devops-dash"
port = "http"
provider = "consul"
name = "devops-dash"
port = "http"
tags = [
"traefik.enable=true",
"traefik.http.routers.devops-dash.rule=Host(`dash.i80.dk`)",
"traefik.http.routers.devops-dash.entrypoints=websecure",
"traefik.http.routers.devops-dash.tls=true",
"traefik.http.routers.devops-dash.tls.certresolver=letsencrypt",
]
check {