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