You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to connect to an RBAC enabled AKS cluster using the recommended code from the README.md, along with a request to list the pods in the default namespace:
var config = KubernetesClientConfiguration.BuildConfigFromConfigFile();
var client = new Kubernetes(config);
client.ListNamespacedPod("default");
The client.ListNamespacedPod command throws an exception "Microsoft.Rest.HttpOperationException: Operation returned an invalid status code 'Forbidden'", with a response content of "pods is forbidden: User "clusterUser" cannot list pods in the namespace "default"". Using the same config file via kubectl retrieves a list of pods successfully.
Is this related to the known issue mentioned in the README.md - "Not all auth providers are supported at moment #91", or is it an additional error? The code appears to connect, but seems to be using a low privelege user account. I couldn't find a suitable issue covering this. Any suggestions would be great.
The text was updated successfully, but these errors were encountered:
FYI - as per issue #176, I've lost access to the original AKS cluster I had this error on. I've tried to reproduce on another cluster, and have been unable to. Connectivity just works as expected...
I'm trying to connect to an RBAC enabled AKS cluster using the recommended code from the README.md, along with a request to list the pods in the default namespace:
var config = KubernetesClientConfiguration.BuildConfigFromConfigFile();
var client = new Kubernetes(config);
client.ListNamespacedPod("default");
The client.ListNamespacedPod command throws an exception "Microsoft.Rest.HttpOperationException: Operation returned an invalid status code 'Forbidden'", with a response content of "pods is forbidden: User "clusterUser" cannot list pods in the namespace "default"". Using the same config file via kubectl retrieves a list of pods successfully.
Is this related to the known issue mentioned in the README.md - "Not all auth providers are supported at moment #91", or is it an additional error? The code appears to connect, but seems to be using a low privelege user account. I couldn't find a suitable issue covering this. Any suggestions would be great.
The text was updated successfully, but these errors were encountered: