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