Last active
January 22, 2020 00:49
-
-
Save bianpengyuan/1a8c9152c6f74c8d4c0afd9b5164a6e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: EnvoyFilter | |
metadata: | |
name: metadata-exchange-1.5 | |
namespace: istio-system | |
spec: | |
configPatches: | |
- applyTo: HTTP_FILTER | |
match: | |
context: ANY # inbound, outbound, and gateway | |
proxy: | |
proxyVersion: '1\.5.*' | |
listener: | |
filterChain: | |
filter: | |
name: "envoy.http_connection_manager" | |
patch: | |
operation: INSERT_BEFORE | |
value: | |
name: envoy.filters.http.wasm | |
typed_config: | |
"@type": type.googleapis.com/udpa.type.v1.TypedStruct | |
type_url: type.googleapis.com/envoy.config.filter.http.wasm.v2.Wasm | |
value: | |
config: | |
configuration: envoy.wasm.metadata_exchange | |
vm_config: | |
runtime: envoy.wasm.runtime.null | |
code: | |
local: | |
inline_string: envoy.wasm.metadata_exchange | |
--- | |
apiVersion: networking.istio.io/v1alpha3 | |
kind: EnvoyFilter | |
metadata: | |
name: stats-filter-1.5 | |
namespace: istio-system | |
spec: | |
configPatches: | |
- applyTo: HTTP_FILTER | |
match: | |
context: SIDECAR_OUTBOUND | |
proxy: | |
proxyVersion: '1\.5.*' | |
listener: | |
filterChain: | |
filter: | |
name: "envoy.http_connection_manager" | |
subFilter: | |
name: "envoy.router" | |
patch: | |
operation: INSERT_BEFORE | |
value: | |
name: envoy.filters.http.wasm | |
typed_config: | |
"@type": type.googleapis.com/udpa.type.v1.TypedStruct | |
type_url: type.googleapis.com/envoy.config.filter.http.wasm.v2.Wasm | |
value: | |
config: | |
root_id: stats_outbound | |
configuration: | | |
{ | |
"debug": "false", | |
"stat_prefix": "istio", | |
} | |
vm_config: | |
vm_id: stats_outbound | |
runtime: envoy.wasm.runtime.v8 | |
code: | |
local: | |
filename: /etc/istio/extensions/stats-filter.wasm | |
- applyTo: HTTP_FILTER | |
match: | |
context: SIDECAR_INBOUND | |
proxy: | |
proxyVersion: '1\.5.*' | |
listener: | |
filterChain: | |
filter: | |
name: "envoy.http_connection_manager" | |
subFilter: | |
name: "envoy.router" | |
patch: | |
operation: INSERT_BEFORE | |
value: | |
name: envoy.filters.http.wasm | |
typed_config: | |
"@type": type.googleapis.com/udpa.type.v1.TypedStruct | |
type_url: type.googleapis.com/envoy.config.filter.http.wasm.v2.Wasm | |
value: | |
config: | |
root_id: stats_inbound | |
configuration: | | |
{ | |
"debug": "false", | |
"stat_prefix": "istio", | |
} | |
vm_config: | |
vm_id: stats_inbound | |
runtime: envoy.wasm.runtime.v8 | |
code: | |
local: | |
filename: /etc/istio/extensions/stats-filter.wasm | |
- applyTo: HTTP_FILTER | |
match: | |
context: GATEWAY | |
proxy: | |
proxyVersion: '1\.5.*' | |
listener: | |
filterChain: | |
filter: | |
name: "envoy.http_connection_manager" | |
subFilter: | |
name: "envoy.router" | |
patch: | |
operation: INSERT_BEFORE | |
value: | |
name: envoy.filters.http.wasm | |
typed_config: | |
"@type": type.googleapis.com/udpa.type.v1.TypedStruct | |
type_url: type.googleapis.com/envoy.config.filter.http.wasm.v2.Wasm | |
value: | |
config: | |
root_id: stats_outbound | |
configuration: | | |
{ | |
"debug": "false", | |
"stat_prefix": "istio", | |
} | |
vm_config: | |
vm_id: stats_outbound | |
runtime: envoy.wasm.runtime.v8 | |
code: | |
local: | |
filename: /etc/istio/extensions/stats-filter.wasm | |
--- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment