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: