Andreas

My feedback

  1. 254 votes
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)

    We’ll send you updates on this idea

    An error occurred while saving the comment
    Andreas 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
    .Configure()
    .Authenticate(credentials)
    .WithSubscription(subscription);
    var kubeConfigFileContent = client.KubernetesClusters
    .GetUserKubeConfigContentsAsync(resourceGroup, clusterName).Result;

    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  · 

Feedback and Knowledge Base