在istio-system分区创建一个EnvoyFilter,作用于全局网关实例,yaml如下:
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: size-limit
namespace: istio-external
spec:
workloadSelector:
labels:
istio: external
app: external
configPatches:
- applyTo: HTTP_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
name: “envoy.filters.network.http_connection_manager”
patch:
operation: INSERT_BEFORE
value:
name: envoy.filters.http.buffer
typed_config:
‘@type’: type.googleapis.com/envoy.extensions.filters.http.buffer.v3.Buffer
maxRequestBytes: 50000000