You can set up Nginx Ingress Controller as a front-end for the communication between external users and the application.
Follow the steps given below to set up the Nginx Ingress Controller.
Run the following command to add the Nginx Ingress Controller repository.
Code Block language css theme Midnight helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
Run the following command to create a namespace
Code Block language css theme Midnight kubectl create namespace <ingress>
Where,
ingress is the name of the namespace.
Run the command as shown in the example below to install the Nginx Ingress Controller helm
Code Block language css theme Midnight helm install <my-ingress-nginx> <ingress-nginx/ingress-nginx> -n <namespace>
Where,
my-ingress-nginx is the name of the Nginx Ingress release.
ingress-nginx/ingress-nginx is the repository path.