<p>As I'm going through Docker/Kubernetes tutorials, I notice a lot of people put nginx into a pod.</p>

<p>Even after reading about nginx, I am not sure what they are using it for. Doesn't Kubernetes serve your app and handle things like load balancing and whatnot?</p>

<p>Isn't something like Node.js a "web server" that can "serve static assets, do caching, and TLS/SSL"?</p>

<p>So with your Node.js app on Kubernetes you have your app being served, static assets, caching especially with things like Redis, and load balancing, etc., why nginx?</p>

<p>Kubernetes is load balancing the requests to your app. Now it is up to you whether you want to expose your app directly or you want to use a WebServer in front of it.</p>

<p>Putting Nginx in front of it would allow you to have things like access logs, error logs, caching, serving static files etc... There are cases where you may want to have your app exposed directly (this is usually the case when you build applications in GoLang)</p>

<p>So Nginx is not a must inside a pod, but it depends on your architecture design whether you want it or not</p>
