-
Notifications
You must be signed in to change notification settings - Fork 1
/
cadvisor.nomad
45 lines (42 loc) · 856 Bytes
/
cadvisor.nomad
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
job "cadvisor" {
region = "global"
datacenters = ["dc1"]
type = "system"
group "cadvisor" {
task "cadvisor" {
driver = "docker"
config {
image = "google/cadvisor"
port_map {
cadvisor = 8080
}
volumes = [
"/:/rootfs:ro",
"/var/run:/var/run:rw",
"/sys:/sys:ro",
"/var/lib/docker/:/var/lib/docker:ro"
]
}
service {
name = "cadvisor"
port = "cadvisor"
tags = ["mon","urlprefix-cadvisor.service.consul:9999/"]
check {
type = "http"
path = "/"
interval = "10s"
timeout = "2s"
}
}
resources {
cpu = 100
memory = 32
network {
mbits = 100
port "cadvisor" {
}
}
}
}
}
}