我正在尝试根据此文档为领事连接服务网格配置异常值检测。
https://learn.hashicorp.com/tutorials/consul/service-mesh-circuit-break?in=consul/developer-mesh
文档显示可以使用 proxy.upstreams 中的配置节来配置异常值检测和断路。但是以下作业文件会引发错误 -Blocks of type "config" are not expected here.
job "docs" {
datacenters = ["dc1"]
group "docs" {
network {
mode = "bridge"
}
service {
name = "docs"
port = "5678"
connect {
sidecar_service {
proxy {
upstreams {
destination_name = "demo"
local_bind_port = 10082
config {
connect_timeout_ms = 3000
}
}
}
}
}
}
task "server" {
driver = "docker"
config {
image = "hashicorp/http-echo"
args = [
"-listen",
":5678",
"-text",
"hello world",
]
}
}
}
}
我做错什么了吗?这不是在游牧作业文件中配置断路的正确方法吗?