Hi,
i am trying to activate gzip compression filter on ingress-gateway but it does not appear to be working for me. Can any one share examples of gzip compression activation would be more helpful.
Thanks,
Vikas
Hi,
i am trying to activate gzip compression filter on ingress-gateway but it does not appear to be working for me. Can any one share examples of gzip compression activation would be more helpful.
Thanks,
Vikas
Can you share your configurations?
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: ingressgateway-gzip
namespace: istio-system
spec:
workloadSelector:
labels:
istio: ingressgateway
configPatches:
- applyTo: HTTP_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
name: “envoy.http_connection_manager”
subFilter:
name: ‘envoy.router’
patch:
operation: INSERT_BEFORE
value:
typed_config:
“@type”: type.googleapis.com/envoy.extensions.filters.http.compressor.v3.Compressor
disable_on_etag_header: true
content_length: 100
content_type:
- text/html
- application/json
compressor_library:
name: text_optimized
typed_config:
“@type”: type.googleapis.com/envoy.extensions.compression.gzip.compressor.v3.Gzip
memory_level: 3
window_bits: 10
compression_level: best_compression
compression_strategy: default_strategy