<p>i have used item proxy-body-size as describe in document, and recreate my ingress.But it has no effect on the ingress-controller.</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: fileupload-ingress
  annotations:
    nginx.ingress.kubernetes.io/proxy-body-size: 100m
    nginx.org/rewrites: "serviceName=fileupload-service rewrite=/;"

</code></pre>

<p>and then i changed my configmap to change proxy-body-size.But it still doesn't work globally.</p>

<pre><code>kind: ConfigMap
apiVersion: v1
metadata:
  name: nginx-config
  namespace: nginx-ingress
data:
  proxy-body-size: "100m"
</code></pre>

<p>here's the document
<a href="https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/annotations.md#rewrite" rel="nofollow noreferrer">https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/annotations.md#rewrite</a></p>

<p>what's wrong with my ingress..help!!!
<a href="https://i.stack.imgur.com/Xszq3.png" rel="nofollow noreferrer">enter image description here</a></p>

<p>There are different ingress controllers and the annotations for them vary.
So for <code>kubernetes/ingress-nginx</code> annotations starts with <code>nginx.ingress</code> and for
<code>nginxinc/kubernetes</code> the annotations starts with <code>nginx.org</code>.</p>
<p>Here is also a <a href="https://grigorkh.medium.com/there-are-two-nginx-ingress-controllers-for-k8s-what-44c7b548e678" rel="nofollow noreferrer">good article</a> showing more differences between them.</p>
