Installing Nginx Ingress Controller on AzureOption 1 Text kubectl -n ingress-nginx apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.11.2/deploy/static/provider/cloud/deploy.yaml kubectl -n ingress-nginx get pod,svc Test: Text export loadbalancer=$(kubectl -n ingress-nginx get svc ingress-nginx-controller -o jsonpath='{.status.loadBalancer.ingress[*].hostname}') curl -k -s http://${loadbalancer} Expected Output: HTML <html> <head><title>308 Permanent Redirect</title></head> <body> <center><h1>308 Permanent Redirect</h1></center> <hr><center>nginx</center> </body> </html> Option 2 Text helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx helm repo update helm install ingress-nginx ingress-nginx/ingress-nginx \ --version 4.7.1 \ --namespace ingress-nginx \ --create-namespace \ --set controller.replicaCount=1 \ --set controller.service.annotations."service\.beta\.kubernetes\.io/azure-load-balancer-health-probe-request-path"=/healthz \ --set controller.service.externalTrafficPolicy=Local Test: Text export loadbalancer=$(kubectl -n ingress-nginx get svc ingress-nginx-controller -o jsonpath='{.status.loadBalancer.ingress[*].hostname}') curl -k -s http://${loadbalancer} Expected Output: HTML <html> <head><title>308 Permanent Redirect</title></head> <body> <center><h1>308 Permanent Redirect</h1></center> <hr><center>nginx</center> </body> </html> Run a Demo application to test the ingress controller Run Demo Application ← Back to Self Hosting Guide