Last active
September 17, 2020 19:01
-
-
Save mandarjog/c27ae8902c234bbb5c5a35637fa362fc to your computer and use it in GitHub Desktop.
ASM 1.4 enable stackdriver
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.4 | |
namespace: istio-system | |
spec: | |
configPatches: | |
- applyTo: HTTP_FILTER | |
match: | |
context: ANY # inbound, outbound, and gateway | |
proxy: | |
proxyVersion: '1\.4.*' | |
listener: | |
filterChain: | |
filter: | |
name: "envoy.http_connection_manager" | |
patch: | |
operation: INSERT_BEFORE | |
value: | |
name: envoy.filters.http.wasm | |
config: | |
config: | |
configuration: envoy.wasm.metadata_exchange | |
vm_config: | |
runtime: envoy.wasm.runtime.null | |
code: | |
inline_string: envoy.wasm.metadata_exchange | |
--- | |
apiVersion: networking.istio.io/v1alpha3 | |
kind: EnvoyFilter | |
metadata: | |
name: stackdriver-filter-1.4 | |
namespace: istio-system | |
spec: | |
configPatches: | |
- applyTo: HTTP_FILTER | |
match: | |
context: SIDECAR_OUTBOUND | |
proxy: | |
proxyVersion: '1\.4.*' | |
listener: | |
filterChain: | |
filter: | |
name: "envoy.http_connection_manager" | |
subFilter: | |
name: "envoy.router" | |
patch: | |
operation: INSERT_BEFORE | |
value: | |
name: envoy.filters.http.wasm | |
config: | |
config: | |
root_id: stackdriver_outbound | |
configuration: | | |
{"enable_mesh_edges_reporting": true, "disable_server_access_logging": false, "meshEdgesReportingDuration": "600s"} | |
vm_config: | |
vm_id: stackdriver_outbound | |
runtime: envoy.wasm.runtime.null | |
code: | |
inline_string: envoy.wasm.null.stackdriver | |
- applyTo: HTTP_FILTER | |
match: | |
context: SIDECAR_INBOUND | |
proxy: | |
proxyVersion: '1\.4.*' | |
listener: | |
filterChain: | |
filter: | |
name: "envoy.http_connection_manager" | |
subFilter: | |
name: "envoy.router" | |
patch: | |
operation: INSERT_BEFORE | |
value: | |
name: envoy.filters.http.wasm | |
config: | |
config: | |
root_id: stackdriver_inbound | |
configuration: | | |
{"enable_mesh_edges_reporting": true, "disable_server_access_logging": false, "meshEdgesReportingDuration": "600s"} | |
vm_config: | |
vm_id: stackdriver_inbound | |
runtime: envoy.wasm.runtime.null | |
code: | |
inline_string: envoy.wasm.null.stackdriver | |
- applyTo: HTTP_FILTER | |
match: | |
context: GATEWAY | |
proxy: | |
proxyVersion: '1\.4.*' | |
listener: | |
filterChain: | |
filter: | |
name: "envoy.http_connection_manager" | |
subFilter: | |
name: "envoy.router" | |
patch: | |
operation: INSERT_BEFORE | |
value: | |
name: envoy.filters.http.wasm | |
config: | |
config: | |
root_id: stackdriver_outbound | |
configuration: | | |
{"enable_mesh_edges_reporting": true, "disable_server_access_logging": false, "meshEdgesReportingDuration": "600s", "disable_host_header_fallback": true} | |
vm_config: | |
vm_id: stackdriver_outbound | |
runtime: envoy.wasm.runtime.null | |
code: | |
inline_string: envoy.wasm.null.stackdriver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment