open-nomad/jobspec/test-fixtures/basic_wrong_key.hcl

136 lines
2 KiB
HCL
Raw Normal View History

2016-03-10 18:16:35 +00:00
job "binstore-storagelocker" {
2020-02-03 17:15:37 +00:00
region = "global"
type = "service"
priority = 50
all_at_once = true
datacenters = ["us2", "eu1"]
consul_token = "abc"
2020-02-03 17:15:37 +00:00
vault_token = "foo"
2016-03-10 18:16:35 +00:00
meta {
foo = "bar"
}
constraint {
attribute = "kernel.os"
value = "windows"
}
update {
stagger = "60s"
max_parallel = 2
}
task "outside" {
driver = "java"
config {
jar_path = "s3://my-cool-store/foo.jar"
2016-03-10 18:16:35 +00:00
}
meta {
my-cool-key = "foobar"
2016-03-10 18:16:35 +00:00
}
}
2016-03-10 18:16:35 +00:00
group "binsl" {
count = 5
restart {
attempts = 5
interval = "10m"
delay = "15s"
mode = "delay"
2016-03-10 18:16:35 +00:00
}
task "binstore" {
driver = "docker"
config {
image = "hashicorp/binstore"
}
logs {
max_files = 10
max_file_size = 100
}
env {
HELLO = "world"
LOREM = "ipsum"
}
service {
name = "foo"
tags = ["foo", "bar"]
port = "http"
check {
name = "check-name"
type = "tcp"
nterval = "10s"
timeout = "2s"
2016-03-10 18:16:35 +00:00
}
}
resources {
cpu = 500
memory = 128
network {
mbits = "100"
port "one" {
static = 1
}
port "two" {
static = 2
}
port "three" {
static = 3
}
2019-07-20 14:55:07 +00:00
port "http" {}
2019-07-20 14:55:07 +00:00
port "https" {}
2019-07-20 14:55:07 +00:00
port "admin" {}
2016-03-10 18:16:35 +00:00
}
}
kill_timeout = "22s"
2016-03-10 18:16:35 +00:00
}
task "storagelocker" {
driver = "docker"
2016-03-10 18:16:35 +00:00
config {
image = "hashicorp/storagelocker"
}
2016-03-10 18:16:35 +00:00
resources {
cpu = 500
memory = 128
}
2016-03-10 18:16:35 +00:00
constraint {
attribute = "kernel.arch"
value = "amd64"
}
}
constraint {
attribute = "kernel.os"
value = "linux"
}
meta {
elb_mode = "tcp"
elb_interval = 10
elb_checks = 3
2016-03-10 18:16:35 +00:00
}
}
2016-03-10 18:16:35 +00:00
}