当前位置:网站首页>Istio practical tips: Customize Max_ body_ size

Istio practical tips: Customize Max_ body_ size

2022-06-24 15:36:00 imroc

This article excerpts from istio Learning notes

background

nginx You can set client_max_body_size, So in istio How to adjust the maximum request size of the client in this scenario ?

Solution

You can configure the EnvoyFilter:

apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
  name: limit-request-size
  namespace: istio-system
spec:
  workloadSelector:
    labels:
      istio: ingressgateway
  configPatches:
  - applyTo: HTTP_FILTER
    match:
      context: GATEWAY
      listener:
        filterChain:
          filter:
            name: envoy.http_connection_manager
    patch:
      operation: INSERT_BEFORE

Verified version : istio 1.8

  • change workloadSelector To select the gateway.
原网站

版权声明
本文为[imroc]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/05/20210509122740560e.html