nomad only services for traefik - WIP
This commit is contained in:
24
_sys/nomad.hcl
Normal file
24
_sys/nomad.hcl
Normal 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`)",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user