nomad only services for traefik - WIP

This commit is contained in:
2023-09-26 12:09:45 +02:00
parent c49f135d81
commit 2ba6fbacca

24
_sys/nomad.hcl Normal file
View File

@@ -0,0 +1,24 @@
# should define only the domain for existing nomads...
job "nomad" {
type = "service"
group "nomad" {
count = 5
constraint {
operator = "distinct_hosts"
value = "true"
}
network {
port "http" {
to = 4646
}
}
service {
name = "nomad"
tags = [
"traefik.enable=true",
"traefik.http.routers.traefik.rule=Host(`nomad.service.consul`)",
]
}
}
}