-
Notifications
You must be signed in to change notification settings - Fork 11
/
nomad.hcl
91 lines (76 loc) · 1.98 KB
/
nomad.hcl
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Full configuration options can be found at https://www.nomadproject.io/docs/configuration
advertise {
http = "{{ GetInterfaceIP `ens160` }}"
rpc = "{{ GetInterfaceIP `ens160` }}"
serf = "{{ GetInterfaceIP `ens160` }}"
}
autopilot {
cleanup_dead_servers = true
disable_upgrade_migration = false
enable_custom_upgrades = true
enable_redundancy_zones = false
last_contact_threshold = "200ms"
max_trailing_logs = 250
server_stabilization_time = "10s"
}
bind_addr = "0.0.0.0"
client {
enabled = true
node_class = "castle"
reserved {
cpu = "200"
memory = "512"
}
}
consul {
address = "127.0.0.1:8501"
ca_file = "/etc/vault.d/consul-agent-ca.pem"
cert_file = "/etc/vault.d/dc1-client-consul.pem"
key_file = "/etc/vault.d/dc1-client-consul-key.pem"
ssl = true
}
data_dir = "/opt/nomad"
leave_on_terminate = true
log_level = "INFO"
plugin "containerd-driver" {
config {
enabled = true
containerd_runtime = "io.containerd.runc.v2"
}
}
plugin "docker" {
config {
allow_caps = ["AUDIT_WRITE", "CHOWN", "DAC_OVERRIDE", "FOWNER", "FSETID", "KILL", "MKNOD", "NET_ADMIN",
"NET_BIND_SERVICE", "NET_BROADCAST", "NET_RAW", "SETFCAP", "SETGID", "SETPCAP", "SETUID", "SYS_CHROOT"]
allow_privileged = true # required for NFS CSI Plugin
volumes {
enabled = true
}
}
}
plugin "raw_exec" {
config {
enabled = true
}
}
server {
enabled = true
bootstrap_expect = 3
encrypt = ""
license_path = "/etc/nomad.d/license.hclic"
raft_protocol = 3
upgrade_version = "0.0.0"
}
telemetry {
datadog_address = "localhost:8125"
datadog_tags = ["role:castle"]
disable_hostname = true
prometheus_metrics = true
publish_allocation_metrics = true
publish_node_metrics = true
}
vault {
enabled = true
address = "https://vault.service.consul:8200"
create_from_role = "nomad-cluster"
}