github.com/tonyhb/nomad@v0.11.8/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    "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        "enabled_schedulers": [
   265          "test"
   266        ],
   267        "encrypt": "abc",
   268        "eval_gc_threshold": "12h",
   269        "heartbeat_grace": "30s",
   270        "job_gc_interval": "3m",
   271        "job_gc_threshold": "12h",
   272        "max_heartbeats_per_second": 11,
   273        "min_heartbeat_ttl": "33s",
   274        "node_gc_threshold": "12h",
   275        "non_voting_server": true,
   276        "num_schedulers": 2,
   277        "protocol_version": 3,
   278        "raft_protocol": 3,
   279        "redundancy_zone": "foo",
   280        "rejoin_after_leave": true,
   281        "retry_interval": "15s",
   282        "retry_join": [
   283          "1.1.1.1",
   284          "2.2.2.2"
   285        ],
   286        "retry_max": 3,
   287        "server_join": [
   288          {
   289            "retry_interval": "15s",
   290            "retry_join": [
   291              "1.1.1.1",
   292              "2.2.2.2"
   293            ],
   294            "retry_max": 3
   295          }
   296        ],
   297        "start_join": [
   298          "1.1.1.1",
   299          "2.2.2.2"
   300        ],
   301        "default_scheduler_config": [{
   302          "scheduler_algorithm": "spread",
   303          "preemption_config": [{
   304            "batch_scheduler_enabled": true,
   305            "system_scheduler_enabled": true,
   306            "service_scheduler_enabled": true
   307          }]
   308        }],
   309        "upgrade_version": "0.8.0"
   310      }
   311    ],
   312    "syslog_facility": "LOCAL1",
   313    "telemetry": [
   314      {
   315        "backwards_compatible_metrics": true,
   316        "collection_interval": "3s",
   317        "disable_hostname": true,
   318        "disable_tagged_metrics": true,
   319        "prometheus_metrics": true,
   320        "publish_allocation_metrics": true,
   321        "publish_node_metrics": true,
   322        "statsd_address": "127.0.0.1:2345",
   323        "statsite_address": "127.0.0.1:1234"
   324      }
   325    ],
   326    "tls": [
   327      {
   328        "ca_file": "foo",
   329        "cert_file": "bar",
   330        "http": true,
   331        "key_file": "pipe",
   332        "rpc": true,
   333        "rpc_upgrade_mode": true,
   334        "tls_cipher_suites": "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
   335        "tls_min_version": "tls12",
   336        "tls_prefer_server_cipher_suites": true,
   337        "verify_https_client": true,
   338        "verify_server_hostname": true
   339      }
   340    ],
   341    "vault": [
   342      {
   343        "address": "127.0.0.1:9500",
   344        "allow_unauthenticated": true,
   345        "ca_file": "/path/to/ca/file",
   346        "ca_path": "/path/to/ca",
   347        "cert_file": "/path/to/cert/file",
   348        "create_from_role": "test_role",
   349        "enabled": false,
   350        "key_file": "/path/to/key/file",
   351        "task_token_ttl": "1s",
   352        "tls_server_name": "foobar",
   353        "tls_skip_verify": true,
   354        "token": "12345"
   355      }
   356    ]
   357  }