Should I use a reverse proxy (eg NGINX) inside my Kuberenetes cluster?

9/7/2016

I have setup a Kubernetes cluster (on GKE). Running multiple services but mainly serving a webapp through a stock Ingress controller.

Are there any benefits to running a reverse proxy behind the Ingress? The TLS is terminated at this point, so it's not for that. Maybe for some server hardening?

-- Hagbarth
docker
kubernetes
nginx
proxy

1 Answer

9/12/2016

The only advantage of chaining GKE ingress and Nginx is ability to use more advanced configuration provided by Nginx.

Currently there are benefits of running your own reverse proxy skipping ingress. Or to use custom ingress controller instead of GKE one. The main benefits of doing this is:

  • Cost saving, each GKE ingress resource costs money.
  • Advanced routing/config offered by Nginx or other proxy.
  • Bypasses the current GKE Ingress beta limitations.
-- Maiku Mori
Source: StackOverflow