open-consul/test/integration/connect/envoy/case-ingress-mesh-gateways-resolver/primary/config_entries.hcl
Chris Piraino b8a5fbf1bf Allow ingress gateways to route through mesh gateways
- Adds integration test for mesh gateways local + remote modes with ingress
- ingress golden files updated for mesh gateway endpoints
2020-04-24 09:31:32 -05:00

64 lines
941 B
HCL

enable_central_service_config = true
config_entries {
bootstrap {
kind = "ingress-gateway"
name = "ingress-gateway"
listeners = [
{
protocol = "tcp"
port = 9999
services = [
{
name = "s2"
}
]
},
{
protocol = "tcp"
port = 10000
services = [
{
name = "s1"
}
]
}
]
}
bootstrap {
kind = "proxy-defaults"
name = "global"
mesh_gateway {
mode = "local"
}
}
bootstrap {
kind = "service-resolver"
name = "s2"
redirect {
service = "s2"
datacenter = "secondary"
}
}
bootstrap {
kind = "service-defaults"
name = "s1"
mesh_gateway {
mode = "remote"
}
}
bootstrap {
kind = "service-resolver"
name = "s1"
redirect {
service = "s1"
datacenter = "secondary"
}
}
}