1{ 2 "acl": [ 3 { 4 "enabled": true, 5 "policy_ttl": "60s", 6 "replication_token": "foobar", 7 "token_ttl": "60s" 8 } 9 ], 10 "audit": { 11 "enabled": true, 12 "sink": [ 13 { 14 "file": { 15 "type": "file", 16 "format": "json", 17 "delivery_guarantee": "enforced", 18 "path": "/opt/nomad/audit.log", 19 "rotate_bytes": 100, 20 "rotate_duration": "24h", 21 "rotate_max_files": 10 22 } 23 } 24 ], 25 "filter": [ 26 { 27 "default": [ 28 { 29 "endpoints": ["/v1/metrics"], 30 "operations": ["*"], 31 "stages": ["*"], 32 "type": "HTTPEvent" 33 } 34 ] 35 } 36 ] 37 }, 38 "addresses": [ 39 { 40 "http": "127.0.0.1", 41 "rpc": "127.0.0.2", 42 "serf": "127.0.0.3" 43 } 44 ], 45 "advertise": [ 46 { 47 "rpc": "127.0.0.3", 48 "serf": "127.0.0.4" 49 } 50 ], 51 "autopilot": [ 52 { 53 "cleanup_dead_servers": true, 54 "disable_upgrade_migration": true, 55 "enable_custom_upgrades": true, 56 "enable_redundancy_zones": true, 57 "last_contact_threshold": "12705s", 58 "max_trailing_logs": 17849, 59 "min_quorum": 3, 60 "server_stabilization_time": "23057s" 61 } 62 ], 63 "bind_addr": "192.168.0.1", 64 "client": [ 65 { 66 "alloc_dir": "/tmp/alloc", 67 "bridge_network_name": "custom_bridge_name", 68 "bridge_network_subnet": "custom_bridge_subnet", 69 "chroot_env": [ 70 { 71 "/opt/myapp/bin": "/bin", 72 "/opt/myapp/etc": "/etc" 73 } 74 ], 75 "client_max_port": 2000, 76 "client_min_port": 1000, 77 "cni_path": "/tmp/cni_path", 78 "cpu_total_compute": 4444, 79 "disable_remote_exec": true, 80 "enabled": true, 81 "gc_disk_usage_threshold": 82, 82 "gc_inode_usage_threshold": 91, 83 "gc_interval": "6s", 84 "gc_max_allocs": 50, 85 "gc_parallel_destroys": 6, 86 "host_volume": [ 87 { 88 "tmp": [ 89 { 90 "path": "/tmp" 91 } 92 ] 93 } 94 ], 95 "max_kill_timeout": "10s", 96 "meta": [ 97 { 98 "baz": "zip", 99 "foo": "bar" 100 } 101 ], 102 "network_interface": "eth0", 103 "network_speed": 100, 104 "no_host_uuid": false, 105 "node_class": "linux-medium-64bit", 106 "options": [ 107 { 108 "baz": "zip", 109 "foo": "bar" 110 } 111 ], 112 "reserved": [ 113 { 114 "cpu": 10, 115 "disk": 10, 116 "memory": 10, 117 "reserved_ports": "1,100,10-12" 118 } 119 ], 120 "server_join": [ 121 { 122 "retry_interval": "15s", 123 "retry_join": [ 124 "1.1.1.1", 125 "2.2.2.2" 126 ], 127 "retry_max": 3 128 } 129 ], 130 "servers": [ 131 "a.b.c:80", 132 "127.0.0.1:1234" 133 ], 134 "state_dir": "/tmp/client-state", 135 "stats": [ 136 { 137 "collection_interval": "5s", 138 "data_points": 35 139 } 140 ] 141 } 142 ], 143 "consul": [ 144 { 145 "address": "127.0.0.1:9500", 146 "allow_unauthenticated": true, 147 "auth": "username:pass", 148 "auto_advertise": true, 149 "ca_file": "/path/to/ca/file", 150 "cert_file": "/path/to/cert/file", 151 "checks_use_advertise": true, 152 "client_auto_join": true, 153 "client_http_check_name": "nomad-client-http-health-check", 154 "client_service_name": "nomad-client", 155 "key_file": "/path/to/key/file", 156 "server_auto_join": true, 157 "server_http_check_name": "nomad-server-http-health-check", 158 "server_rpc_check_name": "nomad-server-rpc-health-check", 159 "server_serf_check_name": "nomad-server-serf-health-check", 160 "server_service_name": "nomad", 161 "ssl": true, 162 "token": "token1", 163 "verify_ssl": true 164 } 165 ], 166 "data_dir": "/tmp/nomad", 167 "datacenter": "dc2", 168 "disable_anonymous_signature": true, 169 "disable_update_check": true, 170 "enable_debug": true, 171 "enable_syslog": true, 172 "http_api_response_headers": [ 173 { 174 "Access-Control-Allow-Origin": "*" 175 } 176 ], 177 "leave_on_interrupt": true, 178 "leave_on_terminate": true, 179 "log_file": "/var/log/nomad.log", 180 "log_json": true, 181 "log_level": "ERR", 182 "name": "my-web", 183 "plugin": [ 184 { 185 "docker": [ 186 { 187 "args": [ 188 "foo", 189 "bar" 190 ], 191 "config": [ 192 { 193 "foo": "bar", 194 "nested": [ 195 { 196 "bam": 2 197 } 198 ] 199 } 200 ] 201 } 202 ] 203 }, 204 { 205 "exec": [ 206 { 207 "config": [ 208 { 209 "foo": true 210 } 211 ] 212 } 213 ] 214 } 215 ], 216 "plugin_dir": "/tmp/nomad-plugins", 217 "ports": [ 218 { 219 "http": 1234, 220 "rpc": 2345, 221 "serf": 3456 222 } 223 ], 224 "region": "foobar", 225 "sentinel": [ 226 { 227 "import": [ 228 { 229 "foo": [ 230 { 231 "args": [ 232 "a", 233 "b", 234 "c" 235 ], 236 "path": "foo" 237 } 238 ] 239 }, 240 { 241 "bar": [ 242 { 243 "args": [ 244 "x", 245 "y", 246 "z" 247 ], 248 "path": "bar" 249 } 250 ] 251 } 252 ] 253 } 254 ], 255 "server": [ 256 { 257 "authoritative_region": "foobar", 258 "bootstrap_expect": 5, 259 "csi_plugin_gc_threshold": "12h", 260 "csi_volume_claim_gc_threshold": "12h", 261 "data_dir": "/tmp/data", 262 "deployment_gc_threshold": "12h", 263 "enabled": true, 264 "enable_event_broker": false, 265 "event_buffer_size": 200, 266 "enabled_schedulers": [ 267 "test" 268 ], 269 "encrypt": "abc", 270 "eval_gc_threshold": "12h", 271 "heartbeat_grace": "30s", 272 "job_gc_interval": "3m", 273 "job_gc_threshold": "12h", 274 "max_heartbeats_per_second": 11, 275 "min_heartbeat_ttl": "33s", 276 "node_gc_threshold": "12h", 277 "non_voting_server": true, 278 "num_schedulers": 2, 279 "protocol_version": 3, 280 "raft_protocol": 3, 281 "raft_multiplier": 4, 282 "redundancy_zone": "foo", 283 "rejoin_after_leave": true, 284 "retry_interval": "15s", 285 "retry_join": [ 286 "1.1.1.1", 287 "2.2.2.2" 288 ], 289 "retry_max": 3, 290 "server_join": [ 291 { 292 "retry_interval": "15s", 293 "retry_join": [ 294 "1.1.1.1", 295 "2.2.2.2" 296 ], 297 "retry_max": 3 298 } 299 ], 300 "start_join": [ 301 "1.1.1.1", 302 "2.2.2.2" 303 ], 304 "default_scheduler_config": [{ 305 "scheduler_algorithm": "spread", 306 "preemption_config": [{ 307 "batch_scheduler_enabled": true, 308 "system_scheduler_enabled": true, 309 "service_scheduler_enabled": true 310 }] 311 }], 312 "upgrade_version": "0.8.0", 313 "license_path": "/tmp/nomad.hclic" 314 } 315 ], 316 "syslog_facility": "LOCAL1", 317 "telemetry": [ 318 { 319 "collection_interval": "3s", 320 "disable_hostname": true, 321 "prometheus_metrics": true, 322 "publish_allocation_metrics": true, 323 "publish_node_metrics": true, 324 "statsd_address": "127.0.0.1:2345", 325 "statsite_address": "127.0.0.1:1234" 326 } 327 ], 328 "tls": [ 329 { 330 "ca_file": "foo", 331 "cert_file": "bar", 332 "http": true, 333 "key_file": "pipe", 334 "rpc": true, 335 "rpc_upgrade_mode": true, 336 "tls_cipher_suites": "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", 337 "tls_min_version": "tls12", 338 "tls_prefer_server_cipher_suites": true, 339 "verify_https_client": true, 340 "verify_server_hostname": true 341 } 342 ], 343 "vault": [ 344 { 345 "address": "127.0.0.1:9500", 346 "allow_unauthenticated": true, 347 "ca_file": "/path/to/ca/file", 348 "ca_path": "/path/to/ca", 349 "cert_file": "/path/to/cert/file", 350 "create_from_role": "test_role", 351 "enabled": false, 352 "key_file": "/path/to/key/file", 353 "task_token_ttl": "1s", 354 "tls_server_name": "foobar", 355 "tls_skip_verify": true, 356 "token": "12345" 357 } 358 ] 359} 360