Many applications running Kubernetes are web applications that need to serve HTTP traffic. For scenarios like this, Kubernetes has so called ingress objects that can be used to direct traffic to microservices. Under the hood, the Ingress Controller is powered by tools like Traefik, Istio or nginx.
To expose a service to the public with the help of an ingress object, we first need to install the appropriate Ingress Controller – in our case nginx.
The following steps are taken from the official documentation.
Install nginx to your Kubernetes cluster
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx helm repo update helm install ingress-nginx ingress-nginx/ingress-nginx
That’s it. You’re now ready to create ingress resources. To learn how to expose an application using nginx-ingress, read the following article: