Failed to download openAPI, could not find kubectl server version

Medha Bhatt 36 Reputation points
2024-10-09T08:16:40.7566667+00:00

Hi,

Just recently, we started getting the below error in our Azure pipeline. I tried upgrading our AKS cluster version to the latest supported - 1.30.4, but still issue persists.

Error says could not find kubectl server version and failed to download OpenAPI. Does anyone have an idea how to resolve this?

Thank you.

User's image

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,127 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mounika Reddy Anumandla 505 Reputation points Microsoft Vendor
    2024-10-09T15:49:11.7266667+00:00

    Hi Medha Bhatt,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    This error typically occurs when the Kubernetes API server requires authentication, but the client hasn’t provided the necessary credentials. Ensure that your kubeconfig file is correctly configured and contains valid credentials for accessing the Kubernetes cluster.
    Have you tried to deploy by turning off validation, you can use the --validate=false flag? If not, please try.

    If you have any further queries, do let us know. If the comment is helpful, please click "Upvote".

    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.