What is the point of nginx when I have Kubernetes?

Viewed 5039

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

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?

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

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?

4 Answers

nginx will provide you with nginx.conf where you can add additional settings and rules like rate limiting, authentication etc and this being in your control. You can achieve them using aws and stuff but having more control is sometimes better

Related