'How to create Azure devops kubernetes service connection for to access private AKS cluster?

Creating a service connection to access non-private AKS cluster is straight forward, however if i want to create service connection for private AKS cluster is it possible from Azure Devops?



Solution 1:[1]

You can create New Kubernetes service connection using the KubeConfig option and click the dropdown arrow to choose Save without Verification

Also see Deploying to Private AKS Cluster

Solution 2:[2]

Please use below link https://techcommunity.microsoft.com/t5/fasttrack-for-azure/using-azure-devops-to-deploy-an-application-on-aks-private/ba-p/2029630

I have impleted this solution in my place, we had private aks , we where unable to make service connection from azure devops to azure kubeneted,

we created a self hosted linux agent in the subnet where kubenetes is and add used my agent to run build and release pipeline

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Satyam Pandey