<p>I want to configure the following settings in my <code>nginx</code> ingress controller deployment</p>
<pre><code>proxy_socket_keepalive -&gt; on 
proxy_read_timeout -&gt; 3600
proxy_write_timeout -&gt;3600
</code></pre>
<p>However I am unable to find them as <code>annotations</code> <a href="https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/" rel="nofollow noreferrer">here</a>, although they appear in the list of available <code>nginx</code> <a href="http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_socket_keepalive" rel="nofollow noreferrer">directives</a>.</p>
<p>Why is that?</p>

pkaramol
<p>There is no <code>proxy_write_timeout</code>. I assume you meant the <a href="http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_send_timeout" rel="nofollow noreferrer">proxy_send_timeout</a>.</p>
<p>Both:</p>
<pre><code>nginx.ingress.kubernetes.io/proxy-send-timeout
</code></pre>
<p>and:</p>
<pre><code>nginx.ingress.kubernetes.io/proxy-read-timeout
</code></pre>
<p>Can be found <a href="https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#custom-timeouts" rel="nofollow noreferrer">here</a> and <a href="https://docs.nginx.com/nginx-ingress-controller/configuration/ingress-resources/advanced-configuration-with-annotations/#general-customization" rel="nofollow noreferrer">here</a>.</p>
<p>As for the <code>proxy_socket_keepalive</code>, unfortunately, this option cannot be set via annotations. You may want to nest it in the Nginx config, for example:</p>
<pre><code>location / {
     client_max_body_size 128M;
     proxy_buffer_size 256k;
     proxy_buffers 4 512k;
     proxy_busy_buffers_size 512k;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
     proxy_socket_keepalive on;
</code></pre>
