<p>I have a rest microservice and would like to setup nginx as a reverse proxy for it. I am little confused about which approach to follow:</p>

<ol>
<li>Run nginx in each pod where application code is running.</li>
<li>Run nginx in separate pods and redirect http requests to application code running in separate pods.</li>
</ol>

<p>Can someone explain which one is better </p>

madcolonel10
<p>In my opinion, running nginx in a separate pod is a better option because that way you can scale up and down application separately from a proxy.  Usually, we use one container with proxy and few with API. </p>
