2020-04-21 14:29:48 +00:00
|
|
|
config_entries {
|
|
|
|
bootstrap {
|
|
|
|
kind = "ingress-gateway"
|
|
|
|
name = "ingress-gateway"
|
|
|
|
|
|
|
|
listeners = [
|
|
|
|
{
|
|
|
|
protocol = "tcp"
|
2020-10-01 14:19:14 +00:00
|
|
|
port = 9999
|
2020-04-21 14:29:48 +00:00
|
|
|
services = [
|
|
|
|
{
|
|
|
|
name = "s2"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
protocol = "tcp"
|
2020-10-01 14:19:14 +00:00
|
|
|
port = 10000
|
2020-04-21 14:29:48 +00:00
|
|
|
services = [
|
|
|
|
{
|
|
|
|
name = "s1"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
bootstrap {
|
|
|
|
kind = "proxy-defaults"
|
|
|
|
name = "global"
|
|
|
|
mesh_gateway {
|
|
|
|
mode = "local"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bootstrap {
|
|
|
|
kind = "service-resolver"
|
|
|
|
name = "s2"
|
|
|
|
redirect {
|
2020-10-01 14:19:14 +00:00
|
|
|
service = "s2"
|
2020-04-21 14:29:48 +00:00
|
|
|
datacenter = "secondary"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bootstrap {
|
|
|
|
kind = "service-defaults"
|
|
|
|
name = "s1"
|
|
|
|
mesh_gateway {
|
|
|
|
mode = "remote"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bootstrap {
|
|
|
|
kind = "service-resolver"
|
|
|
|
name = "s1"
|
|
|
|
redirect {
|
2020-10-01 14:19:14 +00:00
|
|
|
service = "s1"
|
2020-04-21 14:29:48 +00:00
|
|
|
datacenter = "secondary"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|