github.com/bigcommerce/nomad@v0.9.3-bc/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        "enabled": true,
    48        "gc_disk_usage_threshold": 82,
    49        "gc_inode_usage_threshold": 91,
    50        "gc_interval": "6s",
    51        "gc_max_allocs": 50,
    52        "gc_parallel_destroys": 6,
    53        "max_kill_timeout": "10s",
    54        "meta": [
    55          {
    56            "baz": "zip",
    57            "foo": "bar"
    58          }
    59        ],
    60        "network_interface": "eth0",
    61        "network_speed": 100,
    62        "no_host_uuid": false,
    63        "disable_remote_exec": true,
    64        "node_class": "linux-medium-64bit",
    65        "options": [
    66          {
    67            "baz": "zip",
    68            "foo": "bar"
    69          }
    70        ],
    71        "reserved": [
    72          {
    73            "cpu": 10,
    74            "disk": 10,
    75            "memory": 10,
    76            "reserved_ports": "1,100,10-12"
    77          }
    78        ],
    79        "server_join": [
    80          {
    81            "retry_interval": "15s",
    82            "retry_join": [
    83              "1.1.1.1",
    84              "2.2.2.2"
    85            ],
    86            "retry_max": 3
    87          }
    88        ],
    89        "servers": [
    90          "a.b.c:80",
    91          "127.0.0.1:1234"
    92        ],
    93        "state_dir": "/tmp/client-state",
    94        "stats": [
    95          {
    96            "collection_interval": "5s",
    97            "data_points": 35
    98          }
    99        ]
   100      }
   101    ],
   102    "consul": [
   103      {
   104        "address": "127.0.0.1:9500",
   105        "auth": "username:pass",
   106        "auto_advertise": true,
   107        "ca_file": "/path/to/ca/file",
   108        "cert_file": "/path/to/cert/file",
   109        "checks_use_advertise": true,
   110        "client_auto_join": true,
   111        "client_http_check_name": "nomad-client-http-health-check",
   112        "client_service_name": "nomad-client",
   113        "key_file": "/path/to/key/file",
   114        "server_auto_join": true,
   115        "server_http_check_name": "nomad-server-http-health-check",
   116        "server_rpc_check_name": "nomad-server-rpc-health-check",
   117        "server_serf_check_name": "nomad-server-serf-health-check",
   118        "server_service_name": "nomad",
   119        "ssl": true,
   120        "token": "token1",
   121        "verify_ssl": true
   122      }
   123    ],
   124    "data_dir": "/tmp/nomad",
   125    "datacenter": "dc2",
   126    "disable_anonymous_signature": true,
   127    "disable_update_check": true,
   128    "enable_debug": true,
   129    "enable_syslog": true,
   130    "http_api_response_headers": [
   131      {
   132        "Access-Control-Allow-Origin": "*"
   133      }
   134    ],
   135    "leave_on_interrupt": true,
   136    "leave_on_terminate": true,
   137    "log_json": true,
   138    "log_level": "ERR",
   139    "name": "my-web",
   140    "plugin": {
   141      "docker": {
   142        "args": [
   143          "foo",
   144          "bar"
   145        ],
   146        "config": {
   147          "foo": "bar",
   148          "nested": {
   149            "bam": 2
   150          }
   151        }
   152      },
   153      "exec": {
   154        "config": {
   155            "foo": true
   156          }
   157      }
   158    },
   159    "plugin_dir": "/tmp/nomad-plugins",
   160    "ports": [
   161      {
   162        "http": 1234,
   163        "rpc": 2345,
   164        "serf": 3456
   165      }
   166    ],
   167    "region": "foobar",
   168    "sentinel": [
   169      {
   170        "import": [
   171          {
   172            "foo": [
   173              {
   174                "args": [
   175                  "a",
   176                  "b",
   177                  "c"
   178                ],
   179                "path": "foo"
   180              }
   181            ]
   182          },
   183          {
   184            "bar": [
   185              {
   186                "args": [
   187                  "x",
   188                  "y",
   189                  "z"
   190                ],
   191                "path": "bar"
   192              }
   193            ]
   194          }
   195        ]
   196      }
   197    ],
   198    "server": [
   199      {
   200        "authoritative_region": "foobar",
   201        "bootstrap_expect": 5,
   202        "data_dir": "/tmp/data",
   203        "deployment_gc_threshold": "12h",
   204        "enabled": true,
   205        "enabled_schedulers": [
   206          "test"
   207        ],
   208        "encrypt": "abc",
   209        "eval_gc_threshold": "12h",
   210        "heartbeat_grace": "30s",
   211        "job_gc_threshold": "12h",
   212        "max_heartbeats_per_second": 11,
   213        "min_heartbeat_ttl": "33s",
   214        "node_gc_threshold": "12h",
   215        "non_voting_server": true,
   216        "num_schedulers": 2,
   217        "protocol_version": 3,
   218        "raft_protocol": 3,
   219        "redundancy_zone": "foo",
   220        "rejoin_after_leave": true,
   221        "retry_interval": "15s",
   222        "retry_join": [
   223          "1.1.1.1",
   224          "2.2.2.2"
   225        ],
   226        "retry_max": 3,
   227        "server_join": [
   228          {
   229            "retry_interval": "15s",
   230            "retry_join": [
   231              "1.1.1.1",
   232              "2.2.2.2"
   233            ],
   234            "retry_max": 3
   235          }
   236        ],
   237        "start_join": [
   238          "1.1.1.1",
   239          "2.2.2.2"
   240        ],
   241        "upgrade_version": "0.8.0"
   242      }
   243    ],
   244    "syslog_facility": "LOCAL1",
   245    "telemetry": [
   246      {
   247        "backwards_compatible_metrics": true,
   248        "collection_interval": "3s",
   249        "disable_hostname": true,
   250        "disable_tagged_metrics": true,
   251        "prometheus_metrics": true,
   252        "publish_allocation_metrics": true,
   253        "publish_node_metrics": true,
   254        "statsd_address": "127.0.0.1:2345",
   255        "statsite_address": "127.0.0.1:1234"
   256      }
   257    ],
   258    "tls": [
   259      {
   260        "ca_file": "foo",
   261        "cert_file": "bar",
   262        "http": true,
   263        "key_file": "pipe",
   264        "rpc": true,
   265        "rpc_upgrade_mode": true,
   266        "tls_cipher_suites": "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
   267        "tls_min_version": "tls12",
   268        "tls_prefer_server_cipher_suites": true,
   269        "verify_https_client": true,
   270        "verify_server_hostname": true
   271      }
   272    ],
   273    "vault": [
   274      {
   275        "address": "127.0.0.1:9500",
   276        "allow_unauthenticated": true,
   277        "ca_file": "/path/to/ca/file",
   278        "ca_path": "/path/to/ca",
   279        "cert_file": "/path/to/cert/file",
   280        "create_from_role": "test_role",
   281        "enabled": false,
   282        "key_file": "/path/to/key/file",
   283        "task_token_ttl": "1s",
   284        "tls_server_name": "foobar",
   285        "tls_skip_verify": true,
   286        "token": "12345"
   287      }
   288    ]
   289  }