Files
nomad/e2e/metrics/input/nomadagent.hcl
Seth Hoenig a28e5b6965 e2e: refactor metrics test to use NSD and WI (#19022)
* 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
2023-11-09 08:21:16 -06:00

68 lines
1.0 KiB
HCL

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
job "nomadagent" {
type = "system"
group "linux" {
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
restart {
attempts = 0
mode = "fail"
}
update {
min_healthy_time = "4s"
}
network {
mode = "bridge"
port "api" {
to = 3000
}
}
service {
provider = "nomad"
name = "holepunch"
port = "api"
tags = ["monitor"]
check {
type = "http"
path = "/health"
interval = "10s"
timeout = "2s"
}
}
task "task" {
driver = "podman"
user = "nobody"
config {
image = "ghcr.io/shoenig/nomad-holepunch:v0.1.5"
}
env {
HOLEPUNCH_BIND = "0.0.0.0"
HOLEPUNCH_PORT = "3000"
}
identity {
env = true
}
resources {
cpu = 100
memory = 128
}
}
}
}