infrastructure/os/config/roles/nomad/templates/nomad.hcl.j2

42 lines
641 B
Text
Raw Normal View History

2019-06-01 14:02:49 +00:00
addresses {
2020-10-28 14:53:22 +00:00
http = "::"
rpc = "::"
serf = "::"
2019-06-01 14:02:49 +00:00
}
advertise {
2020-10-28 14:53:22 +00:00
http = "{{ ipv6 }}"
rpc = "{{ ipv6 }}"
serf = "{{ ipv6 }}"
2019-06-01 14:02:49 +00:00
}
data_dir = "/var/lib/nomad"
server {
enabled = true
bootstrap_expect = 3
}
consul {
2020-10-28 14:53:22 +00:00
address="[::1]:8500"
2019-06-01 14:02:49 +00:00
}
client {
enabled = true
#cpu_total_compute = 4000
2020-10-28 14:53:22 +00:00
servers = ["[::1]:4648"]
2019-06-01 14:02:49 +00:00
network_interface = "{{ interface }}"
2020-07-05 18:36:16 +00:00
options {
docker.privileged.enabled = "true"
docker.volumes.enabled = "true"
}
2019-06-01 14:02:49 +00:00
}
2020-11-30 07:31:17 +00:00
telemetry {
collection_interval = "1s"
disable_hostname = false
prometheus_metrics = true
publish_allocation_metrics = true
publish_node_metrics = true
}