AKS cluster doesn't start after manually adding a node

Fibiger, Roger 0 Reputation points
2023-08-09T13:42:18.23+00:00

Hello all.

After manually adding a node with an YAML, AKS cluster stopped working.Screenshot from 2023-08-09 14-40-46

The node doesn't appear on any of my node pools using az aks show or az aks nodepool.

The only information about the previous node is a troubleshooting obtained from node pools as shown in image below.

Screenshot from 2023-08-09 14-39-59

I tried to restart the cluster, but now it won't start either.

Any thoughts on this?

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,376 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. mutaz-msft 2,351 Reputation points Microsoft Employee
    2023-08-09T14:39:38.63+00:00

    Hi @Fibiger, Roger,

    it is not supported to add an AKS node using YAML, you can scale your node pool or add new node pool from Azure portal or using az cli.

    https://learn.microsoft.com/en-us/azure/aks/scale-cluster?tabs=azure-cli

    If the cluster is stuck in stop/start state, you can try to fix it uisng these commands:
    az aks operation-abort --name myAKSCluster --resource-group myResourceGroup
    az aks start --name myAKSCluster --resource-group myResourceGroup

    1 person found this answer helpful.

  2. Cristian Gatjens 716 Reputation points Microsoft Employee
    2023-08-09T16:16:06.02+00:00

    Hello Roger,

    Thanks for reaching out and I hope you are doing well.

    I understand that you manually added a node using a YAML file to your AKS cluster, this is most likely causing the issue as manually adding a node is not a supported way. AKS clusters use nodepools (basically a VMSS) to handle the workload, by default, when you create an AKS Cluster a default nodepool is created. If you use a YAML file to create a node then AKS does not know where this node belongs in terms of nodepool, size, availability zone, etc. and that breaks the cluster, I tested this internally and noticed the same behavior.

    Reference link: https://learn.microsoft.com/en-us/azure/aks/concepts-clusters-workloads#nodes-and-node-pools

    You can add more nodes via the Azure Portal or by running the az aks nodepool add command:

    https://learn.microsoft.com/en-us/azure/aks/create-node-pools#add-a-node-pool

    One thing you can try to revert the changes is a cluster reconcile operation:

    CLI:

    az resource update -n <name of the cluster>-g <ResourceGroup Name> --resource-type Microsoft.ContainerService/ManagedClusters

    However, that can take time and there is no guarantee that it will revert the changes, if not, the only option would be recreating the cluster.

    Thanks,

    Cristian.


  3. deherman-MSFT 37,986 Reputation points Microsoft Employee
    2023-08-11T17:20:18.0733333+00:00

    @Fibiger, Roger

    Sorry to hear that the above solutions did not directly resolve your issue. The suggestions made are all good. However, not everything can be resolved without Azure Support.

    To further troubleshoot this, we're going to enable a free, one time technical support ticket. Please email the following to AzCommunity@microsoft.com and we'll get back to you promptly:

    • Subject: "Attn: deherman - "

    • Email body: Your Subscription ID

    • Email body: A link to this thread so we can validate and expedite the request

    If you don't receive a response within 24 hours, please reply to the thread so we can investigate.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image

    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.