2

Can you help me please to specify YAML Istio EnvoyFilter to have the request buffer, analog of Nginx request buffer. I tried

apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
  name: connection
  namespace: my-test
spec:
  workloadSelector:
    labels:
      role: backend
  configPatches:
  - applyTo: LISTENER
    match:
      context: SIDECAR_INBOUND
    patch:
      operation: MERGE
      value:
        per_connection_buffer_limit_bytes: 21000000.0 #21MB

This is applied successfully to the cluster but does not work as expected

Thanks

UPD this works (for istio 1.5)

apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
  name: connection
  namespace: my-test
spec:
  filters:
    - filterName: envoy.buffer
      filterType: HTTP
      filterConfig:
        maxRequestBytes: 21000000.0 #21MB

UPD 2 this works (for istio 1.8)

apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
  name: filter-buffersize-limit
  namespace: istio-system
spec:
  workloadSelector:
    labels:
      istio: ingressgateway
  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.buffer
          typed_config:
            "@type": type.googleapis.com/envoy.extensions.filters.http.buffer.v3.Buffer
            max_request_bytes: 26214400 # 25 MB. 

0 Answers0