<p>The default value of said annotation is 60 sec; I am looking to change its value to 120 sec. I added this as an annotation in ingress resource file but it doesn't seem to be working.</p>

<p>Since my request body is quite big, I am getting 408 from ingress http server immediately after 60 sec only; </p>

<p>Where else I can define this annotation if it is not allowed in ingress file itself?</p>

<p>The following page doesn't mention this annotation; Is it because it is not meant to be added as an annotation?</p>

<p><a href="https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations" rel="nofollow noreferrer">https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations</a></p>

<p>Ingress resource snippet:</p>

<pre><code>kind: Ingress
metadata:
  name: app-ingress
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /my-app
    nginx.ingress.kubernetes.io/client-header-buffer-size: "1M"
    nginx.ingress.kubernetes.io/client-header-timeout: "60"
    nginx.ingress.kubernetes.io/client-body-buffer-size: "1M"
    nginx.ingress.kubernetes.io/client-body-timeout: "120"
    nginx.ingress.kubernetes.io/use-regex: "true"
    nginx.ingress.kubernetes.io/configuration-snippet: |
        proxy_set_header custom-header $1;
spec:
  rules:
  - http:
      paths:
      - path: /(UK)/my-app/(.*)$
        backend:
          serviceName: test
          servicePort: 80
</code></pre>

<p>To summarize our conversation in comments:</p>

<p>There are two Nginx ingress controllers;
One nginx controller is maintained by kubernetes community and the other one by nginx (the company behind nginx product). Here is the github repo for <a href="https://github.com/nginxinc/kubernetes-ingress" rel="nofollow noreferrer">Nginx ingress controller</a> and and here for <a href="https://github.com/kubernetes/ingress-nginx" rel="nofollow noreferrer">kubernetes nginx controller</a>.</p>

<hr>

<p>Nginx controller provided by kubernetes doesn't allow setting <code>client-body-timeout</code> with annotation. Here is a <a href="https://github.com/kubernetes/ingress-nginx/tree/master/internal/ingress/annotations" rel="nofollow noreferrer">link to github repo with annotations code</a>. This means that what you are left with is either</p>

<ul>
<li>setting this parameter globally, or </li>
<li>opening feature request on github and waiting for someone to implement it.</li>
</ul>

<p><code>client-body-timeout</code> parameter can only be set through global config (as specified in <a href="https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/" rel="nofollow noreferrer">documentation</a>).</p>
