-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathfabio-lb.nomad.hcl
53 lines (42 loc) · 879 Bytes
/
fabio-lb.nomad.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
job "fabio" {
region = "global"
datacenters = ["eu-west-2a","eu-west-2b","eu-west-2c","eu-west-2","dc1"]
type = "system"
priority = 75
update {
stagger = "10s"
max_parallel = 1
}
group "fabio-lb"{
network {
port "http" {
static = 9999
}
port "ui" {
static = 9998
}
}
task "fabio" {
driver = "exec"
config {
command = "fabio"
}
artifact {
source = "https://github.com/fabiolb/fabio/releases/download/v1.6.3/fabio-1.6.3-${attr.kernel.name}_${attr.cpu.arch}"
destination = "fabio"
mode = "file"
}
service {
port = "http"
name = "fabio"
check {
type = "http"
port = "ui"
path = "/health"
interval = "10s"
timeout = "2s"
}
}
}
}
}