Is it possible to apply an EnvoyFilter
resource to the "virtual"
filter on 0.0.0.0:15001 ?
Using the right ListenerMatch
config (https://istio.io/docs/reference/config/networking/v1alpha3/envoy-filter/#EnvoyFilter-ListenerMatch) would it be possible to insert a new Filter
in the FilterChain
inserted before the BlackHoleCluster
or PassthroughCluster
(1.1+) ?
[
{
"name": "virtual",
"address": {
"socketAddress": {
"address": "0.0.0.0",
"portValue": 15001
}
},
"filterChains": [
{
"filters": [
{
"name": "envoy.tcp_proxy",
"config": {
"cluster": "PassthroughCluster",
"stat_prefix": "PassthroughCluster"
}
}
]
}
],
"useOriginalDst": true
}
]
I am aware of a newer version of EnvoyFilter
that will be added in the upcoming releases that would address my specific use case, (see https://github.com/istio/api/pull/899) but I was hoping I could make do with the current version of the Resource, by inserting my cluster as the default cluster as follows,
[
{
"name": "virtual",
"address": {
"socketAddress": {
"address": "0.0.0.0",
"portValue": 15001
}
},
"filterChains": [
{
"filters": [
{
// INSERT
// custom (default) filter here
}
{
"name": "envoy.tcp_proxy",
"config": {
"cluster": "PassthroughCluster",
"stat_prefix": "PassthroughCluster"
}
}
]
}
],
"useOriginalDst": true
}
]