30 lines
471 B
HCL
30 lines
471 B
HCL
|
enable_central_service_config = true
|
||
|
|
||
|
config_entries {
|
||
|
bootstrap {
|
||
|
kind = "proxy-defaults"
|
||
|
name = "global"
|
||
|
|
||
|
config {
|
||
|
protocol = "http"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
bootstrap {
|
||
|
kind = "service-resolver"
|
||
|
name = "s2"
|
||
|
default_subset = "v2"
|
||
|
connect_timeout = "30s"
|
||
|
|
||
|
subsets = {
|
||
|
"v1" = {
|
||
|
filter = "Service.Meta.version == v1"
|
||
|
}
|
||
|
|
||
|
"v2" = {
|
||
|
filter = "Service.Meta.version == v2"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|