Share via

AKS Not able to upgrade default node pool

K.R.S Bhuvanesh 0 Reputation points
2023-09-26T06:02:17.7066667+00:00

Hello,

We provision our AKS clusters using Terraform, as per Terraform expectation we have used System Pool as the default node pool from the pipeline

Problem here is while trying to upgrade AKS it could able to upgrade control plane and default node pool errors out with
performing CreateOrUpdate: agentpools.AgentPoolsClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="CustomKubeletConfigOrCustomLinuxOSConfigCanNotBeChanged" Message="CustomKubeletConfig or CustomLinuxOSConfig can not be changed for this operation

From Azure console activity log

"status": {
        "value": "Failed",
        "localizedValue": "Failed"
    },
    "subStatus": {
        "value": "BadRequest",
        "localizedValue": "Bad Request (HTTP Status Code: 400)"

Any hints to fix this

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.


1 answer

Sort by: Most helpful
  1. Eddie Neto 1,256 Reputation points
    2023-09-26T09:45:56.76+00:00

    Hi @K.R.S Bhuvanesh

    Thanks for reaching Microsoft Q&A

    Regarding this error "CustomKubeletConfigOrCustomLinuxOSConfigCanNotBeChanged" you might be missing the config file with the allowed parameters. Anything different will not allow you to perform any change. On this case you should check your terraform template. It only works during the creation of the cluster or nodepool.

    https://learn.microsoft.com/en-us/azure/aks/custom-node-configuration?tabs=linux-node-pools#kubelet-custom-configuration

    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.

    Was this answer helpful?

    0 comments No comments

Your answer

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