Upgrade an aks cluster with autoscaling enabled

Anonymous
2021-06-28T17:24:09.343+00:00

AKS does not support upgrading the cluster and manually scaling the cluster at the same time. What will happen if the cluster autoscaler is trying to scale up/down a cluster, but at the same time you try to upgrade the cluster?

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
774 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SRIJIT-BOSE-MSFT 4,346 Reputation points Microsoft Employee
    2021-06-29T05:16:05.697+00:00

    @Anonymous , Thank you for your question.

    If you try to upgrade the AKS cluster when an earlier scale operation (initiated by the cluster autoscaler) is already in progress you can expect to see an error message like the following.

    {  
      "statusCode": "Conflict",  
      "serviceRequestId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",  
      "statusMessage": "{\"code\":\"OperationNotAllowed\",\"message\":\"Operation is not allowed: Another operation <some operation> is in progress, please wait for it to finish before starting a new operation. See https://aka.ms/aks-pending-operation for more details\"}",  
      "eventCategory": "Administrative"  
    }  
    

    Cluster operations are limited when a previous operation is still in progress. To retrieve a detailed status of your cluster, use the az aks show -g myResourceGroup -n myAKSCluster -o table command. Use your own resource group and AKS cluster name as needed.

    Based on the output of the cluster status:

    Fore more information please refer to this article.

    ----------

    Hope this 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.

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.