unable to create service connection for kubernetes

Arjun 0 Reputation points
2023-11-06T13:58:18.5233333+00:00

unable to create service connection for kubernetes

Hi Team,

can someone look into this issues.

I am unable to establish service connection for aks.

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

1 answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 20,037 Reputation points Microsoft Employee
    2023-11-16T01:40:57.66+00:00

    @Arjun 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:

    If your issue remains unresolved or have further questions, please let us know in the comments and I can further investigate.

    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.