github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/jobspec/test-fixtures/incorrect-service-def.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 } 44 45 task "binstore" { 46 driver = "docker" 47 48 config { 49 image = "hashicorp/binstore" 50 } 51 52 env { 53 HELLO = "world" 54 LOREM = "ipsum" 55 } 56 57 service { 58 tags = ["foo", "bar"] 59 port = "http" 60 61 check { 62 name = "check-name" 63 type = "http" 64 interval = "10s" 65 timeout = "2s" 66 } 67 } 68 69 service { 70 port = "one" 71 } 72 73 resources { 74 cpu = 500 75 memory = 128 76 77 network { 78 mbits = "100" 79 80 port "one" { 81 static = 1 82 } 83 84 port "three" { 85 static = 3 86 } 87 88 port "http" {} 89 } 90 } 91 } 92 } 93 }