<p>I am working on a kubernetes cluster and problem faced is:</p>

<p>From UI/browser, I can see it is sending a request header called "<strong>request_id</strong>" please refer to image:</p>

<p><a href="https://i.stack.imgur.com/Y57cJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y57cJ.png" alt="enter image description here"></a></p>

<p>But while checking on backend it is unavailable. While searching through internet, I could see that people are talking about adding following entry to <strong>Ingress</strong> object:</p>

<pre><code>nginx.ingress.kubernetes.io/configuration-snippet: |
      proxy_set_header request_id "$req_id";
</code></pre>

<p>But it is generating a new value for this and not passing value submitted by browser. </p>

<p>Any ideas, what might be missing here?</p>

Prateek Jain
<p>If you want to pass a custom header to your backend, you need to use this kind of annotation:</p>
<pre><code>nginx.ingress.kubernetes.io/configuration-snippet: |
  more_set_headers &quot;Request-Id: $request_id&quot;;
</code></pre>
<p>In your configuration you are using the variable $req_id, but you need to pass the variable sent by UI/browser.</p>
