/
nomad.hcl.j2
57 lines (45 loc) · 992 Bytes
/
nomad.hcl.j2
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
datacenter = "dc1"
data_dir = "/opt/nomad"
bind_addr = "0.0.0.0"
server {
enabled = true
bootstrap_expect = 3
}
client {
enabled = true
host_volume "crate-config" {
path = "/opt/crate/config"
read_only = false
}
}
retry_join = {{ nomad_servers }}
advertise {
http = "{{internal_ip}}:4646" # Replace with the IP address of Node 1
rpc = "{{internal_ip}}:4647" # Replace with the IP address of Node 1
serf = "{{internal_ip}}:4648" # Replace with the IP address of Node 1
}
consul {
address = "{{internal_ip}}:8500" # Use a different Consul server address for each client!
}
telemetry {
publish_allocation_metrics = true
publish_node_metrics = true
prometheus_metrics = true
}
# Enable the UI for the Nomad server
ui {
enabled = true
}
# Enable logging to a file
log_level = "INFO"
log_file = "/var/log/nomad/nomad.log"
plugin "raw_exec" {
config {
enabled = true
}
}
plugin "docker" {
config {
allow_privileged = true
}
}