-
Notifications
You must be signed in to change notification settings - Fork 0
/
envoy_gateway_filter.yaml
38 lines (38 loc) · 1.11 KB
/
envoy_gateway_filter.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# BEWARE: this file is used in tests
# Changing it might break tests
kind: EnvoyFilter
metadata:
name: httpgzip-sample-gateway
namespace: default
ownerReferences:
- apiVersion: apps.vadasambar.com/v1alpha1
blockOwnerDeletion: true
controller: true
kind: HttpGzip
name: httpgzip-sample-gateway
spec:
configPatches:
- applyTo: HTTP_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
name: envoy.filters.network.http_connection_manager
subFilter:
name: envoy.filters.http.router
patch:
operation: INSERT_BEFORE
value:
name: envoy.filters.http.compressor
typed_config:
'@type': type.googleapis.com/envoy.extensions.filters.http.compressor.v3.Compressor
compressor_library:
name: text_optimized
typed_config:
'@type': type.googleapis.com/envoy.extensions.compression.gzip.compressor.v3.Gzip
compression_strategy: DEFAULT_STRATEGY
remove_accept_encoding_header: true
workloadSelector:
labels:
app: productpage