2020-04-03 19:41:10 +00:00
|
|
|
enable_central_service_config = true
|
|
|
|
|
|
|
|
config_entries {
|
|
|
|
bootstrap = [
|
2020-05-06 21:09:24 +00:00
|
|
|
{
|
|
|
|
kind = "proxy-defaults"
|
|
|
|
name = "global"
|
|
|
|
config {
|
|
|
|
protocol = "http"
|
|
|
|
}
|
|
|
|
},
|
2020-04-03 19:41:10 +00:00
|
|
|
{
|
|
|
|
kind = "ingress-gateway"
|
|
|
|
name = "ingress-gateway"
|
|
|
|
|
|
|
|
listeners = [
|
|
|
|
{
|
|
|
|
port = 9999
|
|
|
|
protocol = "http"
|
|
|
|
services = [
|
|
|
|
{
|
|
|
|
name = "router"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
kind = "service-router"
|
|
|
|
// This is a "virtual" service name and will not have a backing
|
|
|
|
// service definition. It must match the name defined in the ingress
|
|
|
|
// configuration.
|
|
|
|
name = "router"
|
|
|
|
routes = [
|
|
|
|
{
|
|
|
|
match {
|
|
|
|
http {
|
|
|
|
path_prefix = "/s1/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
destination {
|
|
|
|
service = "s1"
|
|
|
|
prefix_rewrite = "/"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
match {
|
|
|
|
http {
|
|
|
|
path_prefix = "/s2/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
destination {
|
|
|
|
service = "s2"
|
|
|
|
prefix_rewrite = "/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|