2023-09-12 01:17:56 +00:00
|
|
|
{
|
2023-09-14 22:19:04 +00:00
|
|
|
"proxyState": {
|
|
|
|
"identity": {
|
|
|
|
"tenancy": {
|
|
|
|
"partition": "default",
|
|
|
|
"namespace": "default",
|
|
|
|
"peerName": "local"
|
2023-09-12 01:17:56 +00:00
|
|
|
},
|
2023-09-14 22:19:04 +00:00
|
|
|
"name": "test-identity"
|
2023-09-12 01:17:56 +00:00
|
|
|
},
|
2023-09-14 22:19:04 +00:00
|
|
|
"listeners": [
|
2023-09-12 01:17:56 +00:00
|
|
|
{
|
2023-09-14 22:19:04 +00:00
|
|
|
"name": "outbound_listener",
|
|
|
|
"direction": "DIRECTION_OUTBOUND",
|
|
|
|
"hostPort": {
|
|
|
|
"host": "127.0.0.1",
|
|
|
|
"port": 15001
|
2023-09-12 01:17:56 +00:00
|
|
|
},
|
2023-09-14 22:19:04 +00:00
|
|
|
"routers": [
|
2023-09-12 01:17:56 +00:00
|
|
|
{
|
2023-09-14 22:19:04 +00:00
|
|
|
"match": {
|
|
|
|
"prefixRanges": [
|
2023-09-12 01:17:56 +00:00
|
|
|
{
|
2023-09-14 22:19:04 +00:00
|
|
|
"addressPrefix": "1.1.1.1",
|
|
|
|
"prefixLen": 32
|
2023-09-12 01:17:56 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"destinationPort": 8080
|
|
|
|
},
|
2023-09-14 22:19:04 +00:00
|
|
|
"l4": {
|
|
|
|
"cluster": {
|
|
|
|
"name": "tcp.api-1.default.dc1.internal.foo.consul"
|
|
|
|
},
|
|
|
|
"statPrefix": "upstream.tcp.api-1.default.default.dc1"
|
2023-09-12 01:17:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2023-09-14 22:19:04 +00:00
|
|
|
"capabilities": [
|
2023-09-12 01:17:56 +00:00
|
|
|
"CAPABILITY_TRANSPARENT"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2023-09-14 22:19:04 +00:00
|
|
|
"clusters": {
|
|
|
|
"tcp.api-1.default.dc1.internal.foo.consul": {
|
|
|
|
"endpointGroup": {
|
|
|
|
"dynamic": {
|
|
|
|
"config": {
|
|
|
|
"disablePanicThreshold": true
|
2023-09-12 01:17:56 +00:00
|
|
|
},
|
2023-09-14 22:19:04 +00:00
|
|
|
"outboundTls": {
|
|
|
|
"outboundMesh": {
|
|
|
|
"identityKey": "test-identity",
|
|
|
|
"validationContext": {
|
|
|
|
"spiffeIds": [
|
2023-09-12 01:17:56 +00:00
|
|
|
"spiffe://foo.consul/ap/default/ns/default/identity/api1-identity"
|
|
|
|
]
|
|
|
|
},
|
2023-09-14 22:19:04 +00:00
|
|
|
"sni": "api-1.default.dc1.internal.foo.consul"
|
2023-09-12 01:17:56 +00:00
|
|
|
},
|
|
|
|
"alpnProtocols": [
|
|
|
|
"consul~tcp"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-09-14 22:19:04 +00:00
|
|
|
"requiredEndpoints": {
|
|
|
|
"api-1.default.dc1.internal.foo.consul": {
|
|
|
|
"id": {
|
|
|
|
"name": "api-1",
|
|
|
|
"type": {
|
|
|
|
"group": "catalog",
|
|
|
|
"groupVersion": "v1alpha1",
|
|
|
|
"kind": "ServiceEndpoints"
|
2023-09-12 01:17:56 +00:00
|
|
|
},
|
2023-09-14 22:19:04 +00:00
|
|
|
"tenancy": {
|
|
|
|
"partition": "default",
|
|
|
|
"namespace": "default",
|
|
|
|
"peerName": "local"
|
2023-09-12 01:17:56 +00:00
|
|
|
}
|
|
|
|
},
|
2023-09-14 22:19:04 +00:00
|
|
|
"port": "mesh"
|
2023-09-12 01:17:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|