Hi Ajmal_Yazdani, this is really an interesting question! I checked the documentation at:
and I could not find any reference to how to configure the application routing addon to deploy a manager NGINX ingress controller where the service is exposed via an internal load balancer. In this case, I suggest that you disable the installation of the managed NGINX ingress controller via the application routing addon by setting the http_application_routing_enabled Terraform variable to false. Then, modify the the nginx_ingress_controller.tf module under terraform/modules/kubernetes add the following parameter:
set {
name = "controller.service.annotations.service\\.beta\\.kubernetes\\.io/azure-load-balancer-internal"
value = "true"
}
I didn't test it, but this should configure the NGINX ingress controller installed via Helm chart to expose the service via an internal load balancer. Hope this helps.
P.S. If you liked the article, please give a star also to the GitHub project, thanks
