-
Notifications
You must be signed in to change notification settings - Fork 213
Description
Hello,
We are trying to limit the body size that can be uploaded via ingress controller.
We are seting this annotation in ingress:
haproxy.org/client-max-body-size: "5m"
and trying to set into configmap too:
apiVersion: v1
data:
client-max-body-size: '"5m"'
kind: ConfigMap
metadata:
annotations:
meta.helm.sh/release-name: haproxy
meta.helm.sh/release-namespace: haproxy
But have no effect, we can send body with around 12Mb:
Invoke-WebRequest -Method POST -Uri "https://2048.intranet.mango.es/uat-s-ci-test/test" -InFile "test_size.json" -ContentType "application/json"
StatusCode : 201
StatusDescription : Created
Content : s-ci is UP! size (KB):12263.732421875
RawContent : HTTP/1.1 201 Created
transfer-encoding: chunked
alt-svc: h3=":443";ma=60;
Content-Type: text/plain; charset=UTF-8
Date: Thu, 04 Dec 2025 14:43:25 GMT
s-ci is UP! size (KB):12263.732421875
Forms : {}
Headers : {[transfer-encoding, chunked], [alt-svc, h3=":443";ma=60;], [Content-Type, text/plain;
charset=UTF-8], [Date, Thu, 04 Dec 2025 14:43:25 GMT]}
Images : {}
InputFields : {}
Links : {}
ParsedHtml : mshtml.HTMLDocumentClass
RawContentLength : 37
Any ideas about this behaviour? How we can limit the body size?
Regards