Skip to content

Instantly share code, notes, and snippets.

@apex-omontgomery
Created January 19, 2022 18:14
Show Gist options
  • Save apex-omontgomery/15f985e83eddb2bff2c5b604e5387356 to your computer and use it in GitHub Desktop.
Save apex-omontgomery/15f985e83eddb2bff2c5b604e5387356 to your computer and use it in GitHub Desktop.
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: limit-request-default
namespace: istio-system
spec:
# If the EnvoyFilter is present in the config root namespace, it will be applied to all applicable workloads in any namespace.
# It looks like this filter was being applied to all gateways as it wasn't a valid selector
#workloadSelector:
# labels:
# istio: ingressgateway
configPatches:
- applyTo: HTTP_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
name: envoy.http_connection_manager
patch:
operation: INSERT_BEFORE
value:
name: envoy.buffer
typed_config:
'@type': type.googleapis.com/udpa.type.v1.TypedStruct
value:
maxRequestBytes: 12582912 # 12 MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment