mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 18:05:42 +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
68 lines
1.0 KiB
HCL
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|