Introduction Nginx Ingress Controller is a popular implementation of the Ingress resource in Kubernetes. It is built around the Nginx web server, a high-performance and widely used web server and reverse proxy. The Nginx Ingress Controller extends the functionality of Nginx to efficiently route incoming HTTP and HTTPS traffic to different services within your Kubernetes…
Modify Nginx Ingress Config First, check out you nginx-ingress-controller’s name with: You should see somthing like this. Now, use kubectl -n <nginx-ingress-namespace> edit ds <nginx-ingress-name> -o yaml to modify the listening port. For example, according to above outputs, the command should be kubectl -n ingress edit ds nginx-ingress-microk8s-controller -o yaml: