Skip to content

Instantly share code, notes, and snippets.

@mandarjog
Last active November 1, 2019 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mandarjog/86dabe1a557a61884f19651dade29f87 to your computer and use it in GitHub Desktop.
Save mandarjog/86dabe1a557a61884f19651dade29f87 to your computer and use it in GitHub Desktop.
telemetrv2 sidecar xds config (INBOUND)
# Note that listener.trafficDirection should match "stackdriver_${traffic_direction}"
# https://github.com/envoyproxy/envoy-wasm/blob/master/api/envoy/config/wasm/v2/wasm.proto
# INBOUND
filters:
- name: envoy.http_connection_manager
typed_config:
'@type': type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager
forward_client_cert_details: APPEND_FORWARD
generate_request_id: true
http_filters:
- name: envoy.filters.http.wasm
config:
config:
configuration: envoy.wasm.metadata_exchange
vm_config:
code:
inline_string: envoy.wasm.metadata_exchange
runtime: envoy.wasm.runtime.null
- name: envoy.filters.http.wasm
config:
config:
configuration: '{}'
root_id: stackdriver_inbound
vm_config:
code:
inline_string: envoy.wasm.null.stackdriver
runtime: envoy.wasm.runtime.null
vm_id: stackdriver_inbound
# OUTBOUND listener note vm_id and root_id matches listener
- name: envoy.filters.http.wasm
config:
config:
configuration: envoy.wasm.metadata_exchange
vm_config:
code:
inline_string: envoy.wasm.metadata_exchange
runtime: envoy.wasm.runtime.null
- name: envoy.filters.http.wasm
config:
config:
configuration: '{}'
root_id: stackdriver_outbound
vm_config:
code:
inline_string: envoy.wasm.null.stackdriver
runtime: envoy.wasm.runtime.null
vm_id: stackdriver_outbound
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment