Created
February 3, 2024 11:38
-
-
Save Stono/33820818ad2423abd8abd3450dcb0ede to your computer and use it in GitHub Desktop.
Gzip decompression EnvoyFilter
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: | |
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