Failed to create nginx ingress controller

Mark Kovarski 1 Reputation point
2020-12-14T21:08:37.673+00:00

After creating AKS cluster and trying to install nginx-ingress (following all steps from this article https://learn.microsoft.com/en-us/azure/aks/ingress-static-ip) I've got pending status on nginx-ingress-ingress-nginx-controller (pending external ip). External public ip is created in same group where kubernetes load balancer is.

kubectl describe service nginx-ingress-ingress-nginx-controller
gives such warning in events section

Events:  
  Type     Reason                  Age                 From                Message  
  ----     ------                  ----                ----                -------  
  Normal  EnsuringLoadBalancer    74s (x12 over 31m)  service-controller  Ensuring load balancer  
  Warning  SyncLoadBalancerFailed  73s (x12 over 31m)  service-controller  Error syncing load balancer: failed to ensure load balancer: not a vmss instance  

What else can I check to find actual error, because this warning message gives no information at all on what is actually going on?

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,101 questions
{count} votes

1 answer

Sort by: Most helpful
  1. prmanhas-MSFT 17,896 Reputation points Microsoft Employee
    2020-12-15T15:43:52.087+00:00

    @Mark Kovarski Firstly, apologies for the delay in responding on this and any inconvenience this issue may have caused.

    Since the warning you are getting are more of a generic one so I did some research and found that in most cases the possible reason is that your public IP is not in the same resource group and region with the AKS cluster.

    You can get the AKS group through the CLI command like this:

    az aks show --resource-group myResourceGroup --name myAKSCluster --query nodeResourceGroup

    You can refer to below posts on GitHub to check if any of comments helped you out:

    https://stackoverflow.com/questions/55625051/how-to-fix-failed-to-ensure-load-balancer-error-for-nginx-ingress

    https://github.com/Azure/AKS/issues/1692

    https://github.com/Azure/AKS/issues/326

    Also since this issues need more investigation and live troubleshooting for quicker resolution I would recommend you to contact azure support. If you have a support plan, requesting you to file a support ticket, else please do let us know, we will try and help you get a one-time free technical support.

    Hope it helps :) !!!

    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.