Hagbarth
Hagbarth

Reputation: 159

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

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?

Upvotes: 1

Views: 438

Answers (1)

Maiku Mori
Maiku Mori

Reputation: 7469

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.

Upvotes: 1

Related Questions