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