Kubernetes Cluster is stuck in starting state for more than an hour and node pools are empty.

Sankalp Rathore 66 Reputation points
2022-07-20T23:49:03.947+00:00

I tried changing the DNS of the AKS and then tried to stop and start the service again to see if the DNS of the cluster changes . The Cluster stopped in 5 minutes but after that when I tried to start the Kubernetes Cluster it is stuck in starting state and all the node pools are empty . I am not allowed to scale and add nodes to the node pools and I cannot stop the Cluster again . I used the GUI to stop and start the kubernetes service. Please let me know whether
I should wait longer for the service to complete the starting operation or should I delete it and start building a new Kubernetes Service.

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,447 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Manu Philip 20,206 Reputation points MVP Volunteer Moderator
    2022-07-21T04:11:16.34+00:00

    Sometimes there can be transient issue between internal AKS components and the work around is to retry STOP and START again.
    If that doesn't help, try a resource refresh also as below and start aks again:

    az resource update -n <your cluster name> -g <resource group name> --namespace Microsoft.ContainerService --resource-type ManagedClusters  
    

    ----------

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    2 people found this answer helpful.

  2. Sankalp Rathore 66 Reputation points
    2022-07-21T17:38:13.433+00:00

    I actually found a way to get the kubernetes cluster out of starting phase. I turns out that if you update the configuration of the cluster it gets out of the starting state and starts updating the status . I used the command to enable managed identities and it worked for me.

    az aks update -g <RGName> -n <AKSName> --enable-managed-identity


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.