github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/jobspec/test-fixtures/basic_wrong_key.hcl (about)

     1  job "binstore-storagelocker" {
     2    region       = "global"
     3    type         = "service"
     4    priority     = 50
     5    all_at_once  = true
     6    datacenters  = ["us2", "eu1"]
     7    consul_token = "abc"
     8    vault_token  = "foo"
     9  
    10    meta {
    11      foo = "bar"
    12    }
    13  
    14    constraint {
    15      attribute = "kernel.os"
    16      value     = "windows"
    17    }
    18  
    19    update {
    20      stagger      = "60s"
    21      max_parallel = 2
    22    }
    23  
    24    task "outside" {
    25      driver = "java"
    26  
    27      config {
    28        jar_path = "s3://my-cool-store/foo.jar"
    29      }
    30  
    31      meta {
    32        my-cool-key = "foobar"
    33      }
    34    }
    35  
    36    group "binsl" {
    37      count = 5
    38  
    39      restart {
    40        attempts = 5
    41        interval = "10m"
    42        delay    = "15s"
    43        mode     = "delay"
    44      }
    45  
    46      task "binstore" {
    47        driver = "docker"
    48  
    49        config {
    50          image = "hashicorp/binstore"
    51        }
    52  
    53        logs {
    54          max_files     = 10
    55          max_file_size = 100
    56        }
    57  
    58        env {
    59          HELLO = "world"
    60          LOREM = "ipsum"
    61        }
    62  
    63        service {
    64          name = "foo"
    65          tags = ["foo", "bar"]
    66          port = "http"
    67  
    68          check {
    69            name    = "check-name"
    70            type    = "tcp"
    71            nterval = "10s"
    72            timeout = "2s"
    73          }
    74        }
    75  
    76        resources {
    77          cpu    = 500
    78          memory = 128
    79  
    80          network {
    81            mbits = "100"
    82  
    83            port "one" {
    84              static = 1
    85            }
    86  
    87            port "two" {
    88              static = 2
    89            }
    90  
    91            port "three" {
    92              static = 3
    93            }
    94  
    95            port "http" {}
    96  
    97            port "https" {}
    98  
    99            port "admin" {}
   100          }
   101        }
   102  
   103        kill_timeout = "22s"
   104      }
   105  
   106      task "storagelocker" {
   107        driver = "docker"
   108  
   109        config {
   110          image = "hashicorp/storagelocker"
   111        }
   112  
   113        resources {
   114          cpu    = 500
   115          memory = 128
   116        }
   117  
   118        constraint {
   119          attribute = "kernel.arch"
   120          value     = "amd64"
   121        }
   122      }
   123  
   124      constraint {
   125        attribute = "kernel.os"
   126        value     = "linux"
   127      }
   128  
   129      meta {
   130        elb_mode     = "tcp"
   131        elb_interval = 10
   132        elb_checks   = 3
   133      }
   134    }
   135  }