Hi,
I am dealing with outlier detection configuration in istio 1.6. In envoy, there is an option to spilt external and local 5xx errors by setting “split_external_local_origin_errors=true”(https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/outlier#consecutive-5xx). I saw also the possibility to realize it in istio via EnvoyFilters (https://istio.io/latest/docs/reference/config/networking/envoy-filter/). But how to set the configurations are not clear to me.
For example, I am to configure customized outlier detection with istio 1.6 deployed. Here would be the configuration I would like to use for envoyfilter:
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: outlier-detection
namespace: istio-system
spec:
configPatches:
-
applyTo: ? (NETWORK_FILTER? HTTP_FILTER? Or?)
match:
context: ANY
listener:
filterChain:
filter:
name: ??
patch:
operation: ? (MERGE? ADD? Or?)
value:
typed_config:
“@type”: “type.googleapis.com/envoy.config.cluster.v3.OutlierDetection”
split_external_local_origin_errors: true
consecutive_local_origin_failure: 1
…
What I am sure is the “typed_config” I want. But other parameters like “applyTo” and “operation” are not clear to me (of course, the corresponding sub-configurations).
Can you please help to confirm which parameters I need to choose for these configurations if I want to enable the “split_external_local_origin_errors” ?
Thanks a lot!
Yukun