I have problem in creating service connection of kubernetes

azlan 0 Reputation points
2023-11-03T11:12:45.2233333+00:00

As mentioned above unable to create service connection of kubernetes .

An attached screenshot is mention above.aks issue while creating kubernates service connection

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.
{count} votes

2 answers

Sort by: Most helpful
  1. AirGordon 7,165 Reputation points
    2023-11-05T07:52:52.07+00:00

    It can take some time for the Subscriptions to load if you have access to multiple tenants and subscriptions. I suggest you go grab a coffee and see if it finishes loading after a few minutes.

    0 comments No comments

  2. KarishmaTiwari-MSFT 20,827 Reputation points Microsoft Employee Moderator
    2023-11-07T04:31:09.9433333+00:00

    @azlan

    Here are some possible solutions that might help:

    • Ensure that the Kubernetes cluster is accessible to Azure DevOps at the time-of-service connection configuration.
    • Check if the service account secret is listed and follow the steps mentioned in this Stack Overflow post to fix it.
    • If you’re using a pre-created Kubernetes configuration stored locally, make sure that it’s accessible to Azure DevOps at the time-of-service connection configuration.
    • If you’re using the ‘kubeconfig’ option, install kubectl and kubelogin on your self-hosted build agent and use shell scripts to create a service connection.
    • Create a service account in your AKS with a secret and use it to create a service connection

    Please go through these posts on similar issue and try the suggested solutions:

    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.