Azure/Bridge-To-Kubernetes

Support AAD enabled cluster

hsubramanianaks opened this issue · 0 comments

This work is to support AAD enabled cluster - today only workaround is to run kubectl proxy and then use b2k. Doesn't work for everyone. User experience is not good when using AAD enabled cluster.

Logs:

2024-02-08T13:33:20.6451606Z | Library | WARNG | Failed to load kubeconfig at 'C:\Users\user.kube\config;': kubeconfig file not found at C:\Users\user.kube\config;
2024-02-08T13:33:20.6689065Z | Library | ERROR | Logging handled exception: k8s.Exceptions.KubeConfigException: {"Message":"kubeconfig file not found at C:\Users\user\.kube\config;","Data":{},"InnerException":null,"HelpLink":null,"Source":"KubernetesClient","HResult":-2146233088,"StackTrace":" at k8s.KubernetesClientConfiguration.LoadKubeConfigAsync(FileInfo kubeconfig, Boolean useRelativePaths)\r\n at k8s.KubernetesClientConfiguration.LoadKubeConfigAsync(String kubeconfigPath, Boolean useRelativePaths)\r\n at k8s.KubernetesClientConfiguration.LoadKubeConfig(String kubeconfigPath, Boolean useRelativePaths)\r\n at Microsoft.BridgeToKubernetes.Library.ManagementClients.KubeConfigManagementClient._GetConfiguration()"}