forked from sofixa/nomad_follower
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnomad_follower.nomad
54 lines (45 loc) · 926 Bytes
/
nomad_follower.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
46
47
48
49
50
51
52
53
54
job "log-shipping" {
datacenters = ["dc1"]
type = "system"
namespace = "logs"
update {
max_parallel = 1
min_healthy_time = "10s"
healthy_deadline = "3m"
progress_deadline = "10m"
auto_revert = false
}
group "log-shipping" {
count = 1
network {
port "promtail-healthcheck" {
to = 3000
}
}
restart {
attempts = 2
interval = "30m"
delay = "15s"
mode = "fail"
}
ephemeral_disk {
size = 300
}
task "nomad-forwarder" {
driver = "docker"
env {
VERBOSE = 4
SKIP_LOG_TAG = "skip_logging"
LOG_FILE = "${NOMAD_ALLOC_DIR}/nomad-logs.log"
NOMAD_ADDR = "http://172.17.0.1:4646"
}
config {
image = "sofixa/nomad_follower:latest"
}
resources {
cpu = 100
memory = 512
}
}
}
}