2019-03-28 21:30:38 +00:00
|
|
|
{
|
|
|
|
"acl": [
|
|
|
|
{
|
|
|
|
"enabled": true,
|
|
|
|
"policy_ttl": "60s",
|
|
|
|
"replication_token": "foobar",
|
|
|
|
"token_ttl": "60s"
|
|
|
|
}
|
|
|
|
],
|
2020-03-22 16:17:33 +00:00
|
|
|
"audit": {
|
|
|
|
"enabled": true,
|
|
|
|
"sink": [
|
|
|
|
{
|
|
|
|
"file": {
|
|
|
|
"type": "file",
|
|
|
|
"format": "json",
|
|
|
|
"delivery_guarantee": "enforced",
|
|
|
|
"path": "/opt/nomad/audit.log",
|
|
|
|
"rotate_bytes": 100,
|
|
|
|
"rotate_duration": "24h",
|
|
|
|
"rotate_max_files": 10
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"filter": [
|
|
|
|
{
|
|
|
|
"default": [
|
|
|
|
{
|
|
|
|
"endpoints": ["/ui/", "/v1/agent/health"],
|
|
|
|
"operations": ["*"],
|
|
|
|
"stages": ["*"],
|
|
|
|
"type": "HTTPEvent"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2019-03-28 21:30:38 +00:00
|
|
|
"addresses": [
|
|
|
|
{
|
|
|
|
"http": "127.0.0.1",
|
|
|
|
"rpc": "127.0.0.2",
|
|
|
|
"serf": "127.0.0.3"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"advertise": [
|
|
|
|
{
|
|
|
|
"rpc": "127.0.0.3",
|
|
|
|
"serf": "127.0.0.4"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"autopilot": [
|
|
|
|
{
|
|
|
|
"cleanup_dead_servers": true,
|
|
|
|
"disable_upgrade_migration": true,
|
|
|
|
"enable_custom_upgrades": true,
|
|
|
|
"enable_redundancy_zones": true,
|
|
|
|
"last_contact_threshold": "12705s",
|
|
|
|
"max_trailing_logs": 17849,
|
2020-02-16 21:23:20 +00:00
|
|
|
"min_quorum": 3,
|
2019-03-28 21:30:38 +00:00
|
|
|
"server_stabilization_time": "23057s"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"bind_addr": "192.168.0.1",
|
|
|
|
"client": [
|
|
|
|
{
|
|
|
|
"alloc_dir": "/tmp/alloc",
|
2020-02-28 19:18:45 +00:00
|
|
|
"bridge_network_name": "custom_bridge_name",
|
|
|
|
"bridge_network_subnet": "custom_bridge_subnet",
|
2019-03-28 21:30:38 +00:00
|
|
|
"chroot_env": [
|
|
|
|
{
|
|
|
|
"/opt/myapp/bin": "/bin",
|
|
|
|
"/opt/myapp/etc": "/etc"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"client_max_port": 2000,
|
|
|
|
"client_min_port": 1000,
|
2020-02-28 19:18:45 +00:00
|
|
|
"cni_path": "/tmp/cni_path",
|
2019-03-28 21:30:38 +00:00
|
|
|
"cpu_total_compute": 4444,
|
2019-07-25 14:45:41 +00:00
|
|
|
"disable_remote_exec": true,
|
2019-03-28 21:30:38 +00:00
|
|
|
"enabled": true,
|
|
|
|
"gc_disk_usage_threshold": 82,
|
|
|
|
"gc_inode_usage_threshold": 91,
|
|
|
|
"gc_interval": "6s",
|
|
|
|
"gc_max_allocs": 50,
|
|
|
|
"gc_parallel_destroys": 6,
|
2019-07-25 14:45:41 +00:00
|
|
|
"host_volume": [
|
|
|
|
{
|
|
|
|
"tmp": [
|
|
|
|
{
|
2019-08-01 09:55:42 +00:00
|
|
|
"path": "/tmp"
|
2019-07-25 14:45:41 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2019-03-28 21:30:38 +00:00
|
|
|
"max_kill_timeout": "10s",
|
|
|
|
"meta": [
|
|
|
|
{
|
|
|
|
"baz": "zip",
|
|
|
|
"foo": "bar"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"network_interface": "eth0",
|
|
|
|
"network_speed": 100,
|
|
|
|
"no_host_uuid": false,
|
|
|
|
"node_class": "linux-medium-64bit",
|
|
|
|
"options": [
|
|
|
|
{
|
|
|
|
"baz": "zip",
|
|
|
|
"foo": "bar"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"reserved": [
|
|
|
|
{
|
|
|
|
"cpu": 10,
|
|
|
|
"disk": 10,
|
|
|
|
"memory": 10,
|
|
|
|
"reserved_ports": "1,100,10-12"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"server_join": [
|
|
|
|
{
|
|
|
|
"retry_interval": "15s",
|
|
|
|
"retry_join": [
|
|
|
|
"1.1.1.1",
|
|
|
|
"2.2.2.2"
|
|
|
|
],
|
|
|
|
"retry_max": 3
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"servers": [
|
|
|
|
"a.b.c:80",
|
|
|
|
"127.0.0.1:1234"
|
|
|
|
],
|
|
|
|
"state_dir": "/tmp/client-state",
|
|
|
|
"stats": [
|
|
|
|
{
|
|
|
|
"collection_interval": "5s",
|
|
|
|
"data_points": 35
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"consul": [
|
|
|
|
{
|
|
|
|
"address": "127.0.0.1:9500",
|
2019-11-18 21:05:06 +00:00
|
|
|
"allow_unauthenticated": true,
|
2019-03-28 21:30:38 +00:00
|
|
|
"auth": "username:pass",
|
|
|
|
"auto_advertise": true,
|
|
|
|
"ca_file": "/path/to/ca/file",
|
|
|
|
"cert_file": "/path/to/cert/file",
|
|
|
|
"checks_use_advertise": true,
|
|
|
|
"client_auto_join": true,
|
|
|
|
"client_http_check_name": "nomad-client-http-health-check",
|
|
|
|
"client_service_name": "nomad-client",
|
|
|
|
"key_file": "/path/to/key/file",
|
|
|
|
"server_auto_join": true,
|
|
|
|
"server_http_check_name": "nomad-server-http-health-check",
|
|
|
|
"server_rpc_check_name": "nomad-server-rpc-health-check",
|
|
|
|
"server_serf_check_name": "nomad-server-serf-health-check",
|
|
|
|
"server_service_name": "nomad",
|
|
|
|
"ssl": true,
|
|
|
|
"token": "token1",
|
|
|
|
"verify_ssl": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"data_dir": "/tmp/nomad",
|
|
|
|
"datacenter": "dc2",
|
|
|
|
"disable_anonymous_signature": true,
|
|
|
|
"disable_update_check": true,
|
|
|
|
"enable_debug": true,
|
|
|
|
"enable_syslog": true,
|
|
|
|
"http_api_response_headers": [
|
|
|
|
{
|
|
|
|
"Access-Control-Allow-Origin": "*"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"leave_on_interrupt": true,
|
|
|
|
"leave_on_terminate": true,
|
2019-10-07 12:16:59 +00:00
|
|
|
"log_file": "/var/log/nomad.log",
|
2019-03-28 21:30:38 +00:00
|
|
|
"log_json": true,
|
|
|
|
"log_level": "ERR",
|
|
|
|
"name": "my-web",
|
2019-07-25 14:45:41 +00:00
|
|
|
"plugin": [
|
|
|
|
{
|
|
|
|
"docker": [
|
|
|
|
{
|
|
|
|
"args": [
|
|
|
|
"foo",
|
|
|
|
"bar"
|
|
|
|
],
|
|
|
|
"config": [
|
|
|
|
{
|
|
|
|
"foo": "bar",
|
|
|
|
"nested": [
|
|
|
|
{
|
|
|
|
"bam": 2
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2019-03-28 21:30:38 +00:00
|
|
|
}
|
2019-07-25 14:45:41 +00:00
|
|
|
]
|
2019-03-28 21:30:38 +00:00
|
|
|
},
|
2019-07-25 14:45:41 +00:00
|
|
|
{
|
|
|
|
"exec": [
|
|
|
|
{
|
|
|
|
"config": [
|
|
|
|
{
|
|
|
|
"foo": true
|
|
|
|
}
|
|
|
|
]
|
2019-03-28 21:30:38 +00:00
|
|
|
}
|
2019-07-25 14:45:41 +00:00
|
|
|
]
|
2019-03-28 21:30:38 +00:00
|
|
|
}
|
2019-07-25 14:45:41 +00:00
|
|
|
],
|
2019-03-28 21:30:38 +00:00
|
|
|
"plugin_dir": "/tmp/nomad-plugins",
|
|
|
|
"ports": [
|
|
|
|
{
|
|
|
|
"http": 1234,
|
|
|
|
"rpc": 2345,
|
|
|
|
"serf": 3456
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"region": "foobar",
|
|
|
|
"sentinel": [
|
|
|
|
{
|
|
|
|
"import": [
|
|
|
|
{
|
|
|
|
"foo": [
|
|
|
|
{
|
|
|
|
"args": [
|
|
|
|
"a",
|
|
|
|
"b",
|
|
|
|
"c"
|
|
|
|
],
|
|
|
|
"path": "foo"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"bar": [
|
|
|
|
{
|
|
|
|
"args": [
|
|
|
|
"x",
|
|
|
|
"y",
|
|
|
|
"z"
|
|
|
|
],
|
|
|
|
"path": "bar"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"server": [
|
|
|
|
{
|
|
|
|
"authoritative_region": "foobar",
|
|
|
|
"bootstrap_expect": 5,
|
|
|
|
"data_dir": "/tmp/data",
|
|
|
|
"deployment_gc_threshold": "12h",
|
|
|
|
"enabled": true,
|
|
|
|
"enabled_schedulers": [
|
|
|
|
"test"
|
|
|
|
],
|
|
|
|
"encrypt": "abc",
|
|
|
|
"eval_gc_threshold": "12h",
|
|
|
|
"heartbeat_grace": "30s",
|
2019-07-18 12:57:47 +00:00
|
|
|
"job_gc_interval": "3m",
|
2019-03-28 21:30:38 +00:00
|
|
|
"job_gc_threshold": "12h",
|
|
|
|
"max_heartbeats_per_second": 11,
|
|
|
|
"min_heartbeat_ttl": "33s",
|
|
|
|
"node_gc_threshold": "12h",
|
|
|
|
"non_voting_server": true,
|
|
|
|
"num_schedulers": 2,
|
|
|
|
"protocol_version": 3,
|
|
|
|
"raft_protocol": 3,
|
|
|
|
"redundancy_zone": "foo",
|
|
|
|
"rejoin_after_leave": true,
|
|
|
|
"retry_interval": "15s",
|
|
|
|
"retry_join": [
|
|
|
|
"1.1.1.1",
|
|
|
|
"2.2.2.2"
|
|
|
|
],
|
|
|
|
"retry_max": 3,
|
|
|
|
"server_join": [
|
|
|
|
{
|
|
|
|
"retry_interval": "15s",
|
|
|
|
"retry_join": [
|
|
|
|
"1.1.1.1",
|
|
|
|
"2.2.2.2"
|
|
|
|
],
|
|
|
|
"retry_max": 3
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"start_join": [
|
|
|
|
"1.1.1.1",
|
|
|
|
"2.2.2.2"
|
|
|
|
],
|
|
|
|
"upgrade_version": "0.8.0"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"syslog_facility": "LOCAL1",
|
|
|
|
"telemetry": [
|
|
|
|
{
|
|
|
|
"backwards_compatible_metrics": true,
|
|
|
|
"collection_interval": "3s",
|
|
|
|
"disable_hostname": true,
|
|
|
|
"disable_tagged_metrics": true,
|
|
|
|
"prometheus_metrics": true,
|
|
|
|
"publish_allocation_metrics": true,
|
|
|
|
"publish_node_metrics": true,
|
|
|
|
"statsd_address": "127.0.0.1:2345",
|
|
|
|
"statsite_address": "127.0.0.1:1234"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tls": [
|
|
|
|
{
|
|
|
|
"ca_file": "foo",
|
|
|
|
"cert_file": "bar",
|
|
|
|
"http": true,
|
|
|
|
"key_file": "pipe",
|
|
|
|
"rpc": true,
|
|
|
|
"rpc_upgrade_mode": true,
|
|
|
|
"tls_cipher_suites": "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
|
|
|
|
"tls_min_version": "tls12",
|
|
|
|
"tls_prefer_server_cipher_suites": true,
|
|
|
|
"verify_https_client": true,
|
|
|
|
"verify_server_hostname": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"vault": [
|
|
|
|
{
|
|
|
|
"address": "127.0.0.1:9500",
|
|
|
|
"allow_unauthenticated": true,
|
|
|
|
"ca_file": "/path/to/ca/file",
|
|
|
|
"ca_path": "/path/to/ca",
|
|
|
|
"cert_file": "/path/to/cert/file",
|
|
|
|
"create_from_role": "test_role",
|
|
|
|
"enabled": false,
|
|
|
|
"key_file": "/path/to/key/file",
|
|
|
|
"task_token_ttl": "1s",
|
|
|
|
"tls_server_name": "foobar",
|
|
|
|
"tls_skip_verify": true,
|
|
|
|
"token": "12345"
|
|
|
|
}
|
|
|
|
]
|
2019-06-03 19:31:39 +00:00
|
|
|
}
|