<p>I use ingress-nginx with Helm Chart. I used to have the problem, that when I would upload a file (50MB) that I would get the error 413 Request Entity Too Large nginx.</p>
<p>So I changed the proxy-body-size value in my values.yaml file to 150m, so I should now be able to upload my file.
But now I get the error &quot;413 Request Entity Too Large openresty/1.13.6.2&quot;.
I checked the nginx.conf file on the ingress controller and the value for client_max_body_size is correctly set to 150m.</p>
<p>After some research I found out that openresty is used by the lua module in nginx.
Does anybody know how I can set this setting too for openresty, or what parameter I am missing ?</p>
<p>My current config is the following:</p>
<p>values.yml:</p>
<pre class="lang-yaml prettyprint-override"><code>ingress-nginx:
  defaultBackend:
    nodeSelector:
      beta.kubernetes.io/os: linux
  controller:
    replicaCount: 2
    resources:
      requests:
        cpu: 1
        memory: 4Gi
      limits:
        cpu: 2
        memory: 7Gi
    autoscaling:
      enabled: true
      minReplicas: 2
      maxReplicas: 10
      targetCPUUtilizationPercentage: 90
      targetMemoryUtilizationPercentage: 90
    ingressClassResource:
      name: nginx
      controllerValue: &quot;k8s.io/nginx&quot;
    nodeSelector:
      beta.kubernetes.io/os: linux
    admissionWebhooks:
      enabled: false
      patch:
        nodeSelector:
          beta.kubernetes.io/os: linux
    extraArgs:
      ingress-class: &quot;nginx&quot;
    config:
      proxy-buffer-size: &quot;16k&quot;
      proxy-body-size: &quot;150m&quot;
      client-body-buffer-size: &quot;128k&quot;
      large-client-header-buffers: &quot;4 32k&quot;
      ssl-redirect: &quot;false&quot;
      use-forwarded-headers: &quot;true&quot;
      compute-full-forwarded-for: &quot;true&quot;
      use-proxy-protocol: &quot;false&quot;
</code></pre>
<p>ingress.yml:</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress
  namespace: namespacename
  annotations:
    kubernetes.io/ingress.class: &quot;nginx&quot;
    nginx.ingress.kubernetes.io/proxy-buffer-size: &quot;128k&quot;
    nginx.ingress.kubernetes.io/proxy-buffers-number: &quot;8&quot;
    nginx.ingress.kubernetes.io/client-body-buffer-size: &quot;128k&quot;
    nginx.ingress.kubernetes.io/proxy-body-size: &quot;150m&quot;
spec:
  tls:
    - hosts:
        - hostname
  rules:
    - host: hostname
      http:
        paths:
          - path: /assets/static/
            pathType: ImplementationSpecific
            backend:
              service:
                name: servicename
                port:
                  number: 8080
</code></pre>

Alex
<p>So it turns out the Application wich had the error, had another reverse Proxy infront of it (wich uses Lua and Openresty for oauth registration).
The Proxy-body-size attribute needed to be raised there to. After that the File upload worked</p>
