Exposing a service in Kubernetes using nginx reverse proxy Exposing a service in Kubernetes using nginx reverse proxy kubernetes kubernetes

Exposing a service in Kubernetes using nginx reverse proxy


You're almost there! Your next step will be to setup a ingress controller. There is an NGINX Ingress controller plugin that you can checkout here.

Edit: Here's an example configuration: https://github.com/nginxinc/kubernetes-ingress/tree/master/examples/complete-example


Thanks for pointing in the right direction.

Essential steps broadly were:

  1. Create an app and its service definition.

  2. Create a namespace for ingress.

  3. Create a default backend deployment and service for redirecting all requests not defined in Ingress rules. Create these in the ingress space
  4. Create the nginx ingress controller deployment.
  5. Create RBAC rules.
  6. Finally create the ingress rule for the applications with the paths and the ports.

Found a very useful guide which explained things in details:https://akomljen.com/kubernetes-nginx-ingress-controller/