github.com/karlem/nomad@v0.10.2-rc1/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        "auth": "username:pass",
   115        "auto_advertise": true,
   116        "ca_file": "/path/to/ca/file",
   117        "cert_file": "/path/to/cert/file",
   118        "checks_use_advertise": true,
   119        "client_auto_join": true,
   120        "client_http_check_name": "nomad-client-http-health-check",
   121        "client_service_name": "nomad-client",
   122        "key_file": "/path/to/key/file",
   123        "server_auto_join": true,
   124        "server_http_check_name": "nomad-server-http-health-check",
   125        "server_rpc_check_name": "nomad-server-rpc-health-check",
   126        "server_serf_check_name": "nomad-server-serf-health-check",
   127        "server_service_name": "nomad",
   128        "ssl": true,
   129        "token": "token1",
   130        "verify_ssl": true
   131      }
   132    ],
   133    "data_dir": "/tmp/nomad",
   134    "datacenter": "dc2",
   135    "disable_anonymous_signature": true,
   136    "disable_update_check": true,
   137    "enable_debug": true,
   138    "enable_syslog": true,
   139    "http_api_response_headers": [
   140      {
   141        "Access-Control-Allow-Origin": "*"
   142      }
   143    ],
   144    "leave_on_interrupt": true,
   145    "leave_on_terminate": true,
   146    "log_file": "/var/log/nomad.log",
   147    "log_json": true,
   148    "log_level": "ERR",
   149    "name": "my-web",
   150    "plugin": [
   151      {
   152        "docker": [
   153          {
   154            "args": [
   155              "foo",
   156              "bar"
   157            ],
   158            "config": [
   159              {
   160                "foo": "bar",
   161                "nested": [
   162                  {
   163                    "bam": 2
   164                  }
   165                ]
   166              }
   167            ]
   168          }
   169        ]
   170      },
   171      {
   172        "exec": [
   173          {
   174            "config": [
   175              {
   176                "foo": true
   177              }
   178            ]
   179          }
   180        ]
   181      }
   182    ],
   183    "plugin_dir": "/tmp/nomad-plugins",
   184    "ports": [
   185      {
   186        "http": 1234,
   187        "rpc": 2345,
   188        "serf": 3456
   189      }
   190    ],
   191    "region": "foobar",
   192    "sentinel": [
   193      {
   194        "import": [
   195          {
   196            "foo": [
   197              {
   198                "args": [
   199                  "a",
   200                  "b",
   201                  "c"
   202                ],
   203                "path": "foo"
   204              }
   205            ]
   206          },
   207          {
   208            "bar": [
   209              {
   210                "args": [
   211                  "x",
   212                  "y",
   213                  "z"
   214                ],
   215                "path": "bar"
   216              }
   217            ]
   218          }
   219        ]
   220      }
   221    ],
   222    "server": [
   223      {
   224        "authoritative_region": "foobar",
   225        "bootstrap_expect": 5,
   226        "data_dir": "/tmp/data",
   227        "deployment_gc_threshold": "12h",
   228        "enabled": true,
   229        "enabled_schedulers": [
   230          "test"
   231        ],
   232        "encrypt": "abc",
   233        "eval_gc_threshold": "12h",
   234        "heartbeat_grace": "30s",
   235        "job_gc_interval": "3m",
   236        "job_gc_threshold": "12h",
   237        "max_heartbeats_per_second": 11,
   238        "min_heartbeat_ttl": "33s",
   239        "node_gc_threshold": "12h",
   240        "non_voting_server": true,
   241        "num_schedulers": 2,
   242        "protocol_version": 3,
   243        "raft_protocol": 3,
   244        "redundancy_zone": "foo",
   245        "rejoin_after_leave": true,
   246        "retry_interval": "15s",
   247        "retry_join": [
   248          "1.1.1.1",
   249          "2.2.2.2"
   250        ],
   251        "retry_max": 3,
   252        "server_join": [
   253          {
   254            "retry_interval": "15s",
   255            "retry_join": [
   256              "1.1.1.1",
   257              "2.2.2.2"
   258            ],
   259            "retry_max": 3
   260          }
   261        ],
   262        "start_join": [
   263          "1.1.1.1",
   264          "2.2.2.2"
   265        ],
   266        "upgrade_version": "0.8.0"
   267      }
   268    ],
   269    "syslog_facility": "LOCAL1",
   270    "telemetry": [
   271      {
   272        "backwards_compatible_metrics": true,
   273        "collection_interval": "3s",
   274        "disable_hostname": true,
   275        "disable_tagged_metrics": true,
   276        "prometheus_metrics": true,
   277        "publish_allocation_metrics": true,
   278        "publish_node_metrics": true,
   279        "statsd_address": "127.0.0.1:2345",
   280        "statsite_address": "127.0.0.1:1234"
   281      }
   282    ],
   283    "tls": [
   284      {
   285        "ca_file": "foo",
   286        "cert_file": "bar",
   287        "http": true,
   288        "key_file": "pipe",
   289        "rpc": true,
   290        "rpc_upgrade_mode": true,
   291        "tls_cipher_suites": "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
   292        "tls_min_version": "tls12",
   293        "tls_prefer_server_cipher_suites": true,
   294        "verify_https_client": true,
   295        "verify_server_hostname": true
   296      }
   297    ],
   298    "vault": [
   299      {
   300        "address": "127.0.0.1:9500",
   301        "allow_unauthenticated": true,
   302        "ca_file": "/path/to/ca/file",
   303        "ca_path": "/path/to/ca",
   304        "cert_file": "/path/to/cert/file",
   305        "create_from_role": "test_role",
   306        "enabled": false,
   307        "key_file": "/path/to/key/file",
   308        "task_token_ttl": "1s",
   309        "tls_server_name": "foobar",
   310        "tls_skip_verify": true,
   311        "token": "12345"
   312      }
   313    ]
   314  }