-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjob.hcl
executable file
·57 lines (47 loc) · 1.2 KB
/
job.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
54
55
56
57
job "infra-proxy-apps" {
datacenters = ["dc1"]
constraint {
attribute = "${meta.oe_tag}"
value = "infra"
}
update {
max_parallel = 1
stagger = "30s"
}
group "infra-proxy-group" {
constraint {
distinct_hosts = true
}
count = 2
task "infra-proxy-apps" {
driver = "raw_exec"
artifact {
source = "https://raw.githubusercontent.com/FRosner/nomad-docker-wrapper/1.2.1/nomad-docker-wrapper"
}
env {
NOMAD_DOCKER_CONTAINER_NAME = "infra-proxy-apps"
NOMAD_DOCKER_PULL_COMMAND = "pliguori/consul-webproxy:latest"
}
config {
command = "nomad-docker-wrapper"
args = ["--net", "host",
"-v", "/etc/ssl/certs:/etc/ssl/certs",
"-v", "/usr/share/ca-certificates:/usr/share/ca-certificates",
"-v", "/infra01/jobs/infra-proxy-apps/auth_basic:/auth_basic",
"pliguori/consul-webproxy:latest"]
}
resources {
cpu = 4096
memory = 2048
network {
mbits = 20
port "nginx" { static = 443 }
}
}
service {
name = "infra-proxy-apps"
port = "nginx"
}
}
}
}