2017-12-05 19:39:42 +00:00
|
|
|
job "address_mode_driver" {
|
2019-10-11 12:00:05 +00:00
|
|
|
type = "service"
|
|
|
|
|
|
|
|
group "group" {
|
|
|
|
task "task" {
|
|
|
|
service {
|
|
|
|
name = "http-service"
|
|
|
|
port = "http"
|
|
|
|
|
|
|
|
address_mode = "auto"
|
|
|
|
|
|
|
|
check {
|
|
|
|
name = "http-check"
|
|
|
|
type = "http"
|
|
|
|
path = "/"
|
|
|
|
port = "http"
|
|
|
|
|
|
|
|
address_mode = "driver"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
service {
|
|
|
|
name = "random-service"
|
|
|
|
port = "9000"
|
|
|
|
|
|
|
|
address_mode = "driver"
|
|
|
|
|
|
|
|
check {
|
|
|
|
name = "random-check"
|
|
|
|
type = "tcp"
|
|
|
|
port = "9001"
|
|
|
|
|
|
|
|
address_mode = "driver"
|
2017-12-05 19:39:42 +00:00
|
|
|
}
|
2019-10-11 12:00:05 +00:00
|
|
|
}
|
2017-12-05 19:39:42 +00:00
|
|
|
}
|
2019-10-11 12:00:05 +00:00
|
|
|
}
|
2017-12-05 19:39:42 +00:00
|
|
|
}
|