Skip to content

Instantly share code, notes, and snippets.

@Stono
Created February 3, 2024 11:38
Show Gist options
  • Save Stono/33820818ad2423abd8abd3450dcb0ede to your computer and use it in GitHub Desktop.
Save Stono/33820818ad2423abd8abd3450dcb0ede to your computer and use it in GitHub Desktop.
Gzip decompression EnvoyFilter
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
annotations:
description: Adds an accept-encoding (gzip) header to outbound requests, decompresses
responses
name: Enable compressed requests between services
name: enforce-compression
spec:
configPatches:
- applyTo: HTTP_FILTER
match:
context: SIDECAR_OUTBOUND
listener:
filterChain:
filter:
name: envoy.filters.network.http_connection_manager
subFilter:
name: envoy.filters.http.router
patch:
operation: INSERT_BEFORE
value:
name: decompressor
typed_config:
'@type': type.googleapis.com/envoy.extensions.filters.http.decompressor.v3.Decompressor
decompressor_library:
name: basic
typed_config:
'@type': type.googleapis.com/envoy.extensions.compression.gzip.decompressor.v3.Gzip
window_bits: 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment