✓ Solved

Uploading a larger file using HTTP PUT through a NodeBalancer

I have a service (ownCloud) running behind a node balancer using TCP and when I try to upload even a modest file of around 2 Mb using HTTP PUT, I get back an error:

HTTP/2 413

<html>
<head><title>413 Request Entity Too Large</title></head>
<body>
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx</center>
</body>
</html>

Since I'm not using nginx in this instance, I'm assuming that's coming from the node balancer. If this was a normal nginx instance I would add client_max_body_size .

Is there any way to make the node balancer pass through larger files?

1 Reply

✓ Best Answer

Following up on my own post, it was not the NodeBalancer, but rather the nginx controller being used for ingress in my Kubernetes cluster. That's where I have to make the change:

https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#proxy-body-size

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  ...
  annotations:
    nginx.ingress.kubernetes.io/proxy-body-size: 10m
spec:
  ...

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct