<p>We have a kubernetes cluster which has a dropwizard based web application  running as a service.  This application has a rest uri to upload files.  It cannot upload files larger than 1MB.  I get the following error:</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>ERROR [2017-07-27 13:32:47,629] io.dropwizard.jersey.errors.LoggingExceptionMapper: Error handling a request: ea812501b414f0d9
! com.fasterxml.jackson.core.JsonParseException: Unexpected character ('&lt;' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
!  at [Source: &lt;html&gt;
! &lt;head&gt;&lt;title&gt;413 Request Entity Too Large&lt;/title&gt;&lt;/head&gt;
! &lt;body bgcolor="white"&gt;
! &lt;center&gt;&lt;h1&gt;413 Request Entity Too Large&lt;/h1&gt;&lt;/center&gt;
! &lt;hr&gt;&lt;center&gt;nginx/1.11.3&lt;/center&gt;
! &lt;/body&gt;
! &lt;/html&gt;</code></pre>
</div>
</div>
</p>

<p>I have tried the suggestions given in <a href="https://github.com/nginxinc/kubernetes-ingress/issues/21" rel="noreferrer">https://github.com/nginxinc/kubernetes-ingress/issues/21</a>.   I have edited the Ingress to set the proxy-body-size annotation. Also, I have tried using the configMap without any success.  we are using kubernetes version 1.5.  Please let me know if you need additional information.  </p>

<p>Had this on my setup as well. Two advices here:</p>

<p>1: switch to official kubernetes nginx ingress, it's awesome (<a href="https://github.com/kubernetes/ingress-nginx" rel="nofollow noreferrer">https://github.com/kubernetes/ingress-nginx</a>)</p>

<p>2: with the above ingress, you can add an annotation to your Ingresses to controll body size limit on per ingress basis like this :</p>

<pre><code>annotations:
  ingress.kubernetes.io/proxy-body-size: 10m
</code></pre>

<p>works great</p>
