-
Notifications
You must be signed in to change notification settings - Fork 0
/
chrony_nts.nomad
72 lines (62 loc) · 1.66 KB
/
chrony_nts.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
job "chrony_nts" {
datacenters = ["chronyNTS"]
type = "service"
group "docker" {
count = 1
network {
// mode = "host"
port "ntp" {
static = "123"
}
port "nts" {
static = "4460"
}
}
update {
max_parallel = 1
min_healthy_time = "10s"
healthy_deadline = "2m"
progress_deadline = "5m"
auto_revert = true
auto_promote = true
canary = 1
}
service {
name = "NTS"
port = "nts"
check {
name = "NTS Service"
type = "tcp"
interval = "10s"
timeout = "1s"
}
}
volume "letsencrypt" {
type = "host"
read_only = false
source = "letsencrypt"
}
task "chrony_container" {
driver = "docker"
volume_mount {
volume = "letsencrypt"
destination = "/opt/letsencrypt"
read_only = false
}
env {
NTP_SERVERS = "0.de.pool.ntp.org,time.cloudflare.com,time1.google.com"
LOG_LEVEL = "1"
}
config {
image = "my.gitlab.com:12345/chrony-nts:latest"
ports = ["ntp", "nts"]
network_mode = "default"
force_pull = true
auth {
username = "mygitlabuser"
password = "supersecret"
}
}
}
}
}