open-nomad/jobspec/test-fixtures/tg-service-proxy-expose.hcl
Mahmood Ali 1ae924973e hclv1: tweak HCLv1 tests
This ensures that gatway ReadOnly key is tested.  Also, update the hclv1
test-fixtures to be hclv1 compliant.
2020-10-21 14:05:46 -04:00

30 lines
644 B
HCL

job "group_service_proxy_expose" {
group "group" {
service {
name = "example"
connect {
sidecar_service {
proxy {
expose {
path {
path = "/health"
protocol = "http"
local_path_port = 2222
listener_port = "healthcheck"
}
path {
path = "/metrics"
protocol = "grpc"
local_path_port = 3000
listener_port = "metrics"
}
}
}
}
}
}
}
}