254 votes10 comments · Azure Kubernetes Service (AKS) » Integration with Azure services · Flag idea as inappropriate… · Admin →
An error occurred while saving the commentAndreas commented
I ended up here via some detours because of a question I raised here: https://github.com/kubernetes-client/csharp/issues/354
Support via the .NET Azure SDK trough this code snippet for AAD integrated AKS clusters is needed:
var client = Azure
var kubeConfigFileContent = client.KubernetesClusters
The kubeConfigFileContent generated does not contain an access token, preventing it to connect trough the azure auth provider for using the k8s .NET sdk (which does support it if the access token would be there).
This prevents us from using managed service principles to connect from a .NET headless service to a k8s cluster. Using native k8s service principles instead of integrated AAD ones defeats the purpose, as well as asking for the admin kubeConfig.Andreas supported this idea ·