Files
nomad/e2e/servicediscovery/input/consul_provider.nomad
2023-08-10 17:27:29 -05:00

31 lines
511 B
HCL

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
job "service_discovery" {
datacenters = ["dc1"]
type = "service"
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
group "service_discovery" {
service {
name = "http-api"
provider = "consul"
tags = ["foo", "bar"]
}
task "test" {
driver = "raw_exec"
config {
command = "bash"
args = ["-c", "sleep 15000"]
}
}
}
}