1

When I try to run kubectl get namespaces or kubectl get nodes commands etc. I am getting this error (I am using Azure Kubernetes Service). I would appreciate any help with this issue.

Error from server (Forbidden): namespaces is forbidden: User "XXXXXXXXXXXXXX" cannot list namespaces at the cluster scope

1 Answer 1

1

This is an authorization module error message: as explained in the Kubernetes docs and, for example, shown here you need to have the permissions to carry out a certain action (in this case: list namespaces and nodes).

Since you didn't share more background on how this cluster is set up or who is responsible for it, I can only suggest to either reach out to the cluster admin to give you the rights, or, if you've set up the cluster yourself, have a look at the AD integration, which may be of use here.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.