Error when tring to create a cluster on AKS using deployment.yaml

Debojyoti Roy Chowdhury 0 Reputation points
2025-02-10T02:35:15.59+00:00

I am trying to deploy a cluster in aks but after creating the deployment.yaml file I am getting an error E0210 02:30:46.621515 510 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: the server has asked for the client to provide credentials"

I tried --validate=false tag also but still getting the same error. any help appriciated.

This question is related to the following Learning Module

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
2,053 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VarunTha 12,495 Reputation points Microsoft Vendor
    2025-02-11T17:40:06.5066667+00:00

    Hi Debojyoti Roy Chowdhury,
    Thank you for reaching out to us on the Microsoft Q&A forum.

    We understand that you are facing an error while trying to create a cluster on AKS using your deployment.yaml file. The error message you received, "couldn't get current server API group list: the server has asked for the client to provide credentials," typically indicates an authentication issue.

    When we followed the exercise in the module, we did not encounter any errors and achieved positive results. We have a screenshot of the successful results as well. After executing step 2, we opened the integrated editor in Cloud Shell by entering code ., then opened the deployment.yaml file. We directly pasted the YAML code from step 9 into the deployment.yaml section and saved it by clicking Ctrl+S. After that, we executed the remaining steps as per the document without any issues.

    User's image
    User's image

    User's image

    We recommend double-checking your authentication and ensuring that you are logged in correctly. If you continue to face difficulties, please let us know, and we would be happy to assist you further.

    If you have found the answer provided to be helpful, please click on the "Upvote and Accept Answer" button so that it is useful for other members in the Microsoft Q&A community.


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.