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:
Create an app and its service definition.
Create a namespace for ingress.
- Create a default backend deployment and service for redirecting all requests not defined in Ingress rules. Create these in the ingress space
- Create the nginx ingress controller deployment.
- Create RBAC rules.
- 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/