mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 01:45:44 +03:00
* e2e: remove old metrics suite * e2e: install stress on e2e jammy image * e2e: overhaul metrics test to use nomad service discovery, workload identity * e2e: format metrics hcl files and copywrite * e2e: undo tf lock file * e2e: undo reg auth file perms * e2e: format cpustress.hcl
72 lines
1.2 KiB
HCL
72 lines
1.2 KiB
HCL
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
job "winagent" {
|
|
type = "system"
|
|
|
|
group "windows" {
|
|
|
|
constraint {
|
|
attribute = "${attr.kernel.name}"
|
|
value = "windows"
|
|
}
|
|
|
|
update {
|
|
min_healthy_time = "4s"
|
|
}
|
|
|
|
restart {
|
|
attempts = 0
|
|
mode = "fail"
|
|
}
|
|
|
|
network {
|
|
mode = "host"
|
|
port "api" {
|
|
static = 6120
|
|
}
|
|
}
|
|
|
|
service {
|
|
provider = "nomad"
|
|
name = "holepunch"
|
|
port = "api"
|
|
tags = ["monitor"]
|
|
check {
|
|
type = "http"
|
|
path = "/health"
|
|
interval = "10s"
|
|
timeout = "2s"
|
|
}
|
|
}
|
|
|
|
task "task" {
|
|
driver = "raw_exec"
|
|
|
|
artifact {
|
|
source = "https://github.com/shoenig/nomad-holepunch/releases/download/v0.1.5/nomad-holepunch_0.1.5_windows_amd64.tar.gz"
|
|
destination = "local/"
|
|
}
|
|
|
|
config {
|
|
command = "./nomad-holepunch.exe"
|
|
}
|
|
|
|
env {
|
|
HOLEPUNCH_BIND = "0.0.0.0"
|
|
HOLEPUNCH_PORT = "${NOMAD_PORT_api}"
|
|
}
|
|
|
|
identity {
|
|
env = true
|
|
}
|
|
|
|
resources {
|
|
cpu = 100
|
|
memory = 128
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|