This repository has been archived on 2023-03-15. You can view files and clone it, but cannot push or open issues or pull requests.
infrastructure/os/config/roles/nomad/templates/nomad.hcl.j2

52 lines
785 B
Django/Jinja

addresses {
http = "::"
rpc = "::"
serf = "::"
}
advertise {
http = "{{ ipv6 }}"
rpc = "{{ ipv6 }}"
serf = "{{ ipv6 }}"
}
data_dir = "/var/lib/nomad"
server {
enabled = true
bootstrap_expect = 3
}
consul {
address="[::1]:8500"
}
client {
enabled = true
#cpu_total_compute = 4000
servers = ["[::1]:4648"]
network_interface = "{{ interface }}"
options {
docker.privileged.enabled = "true"
docker.volumes.enabled = "true"
}
}
telemetry {
collection_interval = "1s"
disable_hostname = false
prometheus_metrics = true
publish_allocation_metrics = true
publish_node_metrics = true
}
plugin "docker" {
config {
pull_activity_timeout = "15m"
volumes {
enabled = true
}
allow_privileged = true
}
}