Skip to content

Instantly share code, notes, and snippets.

@jippi
Created July 9, 2018 20:24
Show Gist options
  • Select an option

  • Save jippi/abfd99e0cdb2e92842a49b22170a5d87 to your computer and use it in GitHub Desktop.

Select an option

Save jippi/abfd99e0cdb2e92842a49b22170a5d87 to your computer and use it in GitHub Desktop.

Revisions

  1. jippi created this gist Jul 9, 2018.
    73 changes: 73 additions & 0 deletions nomad.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,73 @@
    {
    "bind_addr": "0.0.0.0",
    "data_dir": "/var/lib/nomad",
    "datacenter": "xxx",
    "disable_update_check": true,
    "enable_syslog": true,
    "leave_on_interrupt": true,
    "leave_on_terminate": true,
    "log_level": "DEBUG",
    "name": "xxxx",
    "addresses": {
    "http": "0.0.0.0",
    "rpc": "0.0.0.0",
    "serf": "0.0.0.0"
    },
    "client": {
    "enabled": true,
    "network_interface": "eth0",
    "node_class": "xxx",
    "max_kill_timeout": "300s",
    "options": {
    "docker.auth.config": "/root/.docker/config.json",
    "docker.cleanup.image.delay": "1h",
    "driver.raw_exec.enable": true
    },
    "reserved": {
    "cpu": 1024,
    "disk": 2048,
    "memory": 1024,
    "reserved_ports": "22,25,53,123,514,4646-4648,48484,49968,8200-8302,8400,8500,8600,8953"
    },
    "meta": {
    "aws.instance.type": "m4.xlarge",
    "aws.instance.family": "m4",
    "aws.instance.availability-zone": "xxx",
    "aws.instance.region": "us-east-1",
    "aws.instance.life-cycle": "normal",
    "aws.instance.root-device-type": "ebs",
    "aws.ami-version": "2.0.0-alpha13",
    "aws.instance.region-short": "xxx",
    "aws.instance.stack-name": "xxx"
    }
    },
    "consul": {
    "address": "127.0.0.1:8500",
    "client_auto_join": true,
    "client_service_name": "xxx",
    "server_auto_join": true,
    "server_service_name": "nomad"
    },
    "vault": {
    "enabled": true,
    "create_from_role": "xxx",
    "address": "xxxx"
    },
    "telemetry": {
    "prometheus_metrics": true,
    "disable_hostname": true,
    "publish_allocation_metrics": true,
    "publish_node_metrics": true,
    "datadog_address": "localhost:8125"
    },
    "server": {
    "enabled": true,
    "bootstrap_expect": 3
    },
    "advertise": {
    "http": "xxx:4646",
    "rpc": "xxx:4647",
    "serf": "xxx:4648"
    },
    "region": "xxx"
    }