Public Cloud - ingress-nginx load balancer
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Frage

ingress-nginx load balancer

Von
NandaR
Erstellungsdatum 2023-12-19 12:48:46 (edited on 2024-09-04 14:24:42) in Public Cloud

I installed a cluster wide ingress-nginx loadbalancer, as per the documentation.
Now, I have an issue that I want to upload files larger than 1m (this is the value accepted by the default nginx-ingress container).
Anyone knows what the right way to change the value of client_max_body_size is ?


1 Antwort ( Latest reply on 2024-03-13 10:46:03 Von
MarcinN2
)

Hi @PeterB2 ,

Should help:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: "15m"
nginx.ingress.kubernetes.io/proxy-buffering: "off"
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
nginx.org/client-max-body-size: "15m"

Also check default restriction for application server.

Regards,