tk
Size: a a a
tk
tk
tk
tk
tk
AL
VA
С
SG
K
K
K
POST "https://any-kube.net/api/rem-m" -d @test.json
request entity too large
в логе "POST /api/rem-m HTTP/1.1" 413 - via_upstreamll
...66K дек 7 17:00 test.json
K
ЕВ
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: client-max-body-size-filter
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
value:
name: envoy.buffer
typed_config:
'@type': type.googleapis.com/udpa.type.v1.TypedStruct
value:
maxRequestBytes: 157286400
K
- applyTo: HTTP_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
name: envoy.filters.network.http_connection_manager
Это применяется без перезапусков насколько я понялK
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: istio-gateway-http
namespace: eopp
annotations:
kubernetes.io/ingress.class: "istio"
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*"
---
kind: VirtualService
apiVersion: networking.istio.io/v1alpha3
metadata:
annotations:
meta.helm.sh/release-name: rem-m
meta.helm.sh/release-namespace: eopp
labels:
app.kubernetes.io/managed-by: Helm
name: eoppingress-rem-m
namespace: eopp
spec:
gateways:
- istio-gateway-http
hosts:
- '*'
http:
- corsPolicy:
allowCredentials: true
allowHeaders:
- origin
- authorization
- content-type
allowMethods:
- GET
- POST
- PUT
- OPTIONS
- DELETE
- PATCH
- HEAD
allowOrigins:
- regex: .*
exposeHeaders:
- origin
- authorization
maxAge: 600s
match:
- uri:
regex: /api/rem-m/?
route:
- destination:
host: rem-m-eopp-charts
port:
number: 80
timeout: 7000s
И далее направляет в rem-m-eopp-charts
(NODEJS)