2022-06-28 19:52:25 +00:00
|
|
|
config_entries {
|
|
|
|
bootstrap = [
|
|
|
|
{
|
|
|
|
kind = "proxy-defaults"
|
|
|
|
name = "global"
|
|
|
|
|
|
|
|
config {
|
|
|
|
protocol = "http"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
kind = "service-router"
|
|
|
|
name = "s2"
|
|
|
|
routes = [
|
|
|
|
{
|
|
|
|
match { http { path_prefix = "/s3/" } }
|
|
|
|
destination {
|
|
|
|
service = "s3"
|
|
|
|
prefix_rewrite = "/"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
kind = "exported-services"
|
|
|
|
name = "default"
|
|
|
|
services = [
|
|
|
|
{
|
|
|
|
name = "s2"
|
|
|
|
consumers = [
|
|
|
|
{
|
2022-10-04 18:46:15 +00:00
|
|
|
peer = "alpha-to-primary"
|
2022-06-28 19:52:25 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|