Forum Navigation
You need to log in to create posts and topics.

Error from server (Forbidden): pods is forbidden: User "system:anonymous" cannot list resource "pods" in API group "" in the namespace "default"

Problem

User tries to use different user other then kubernetes-admin and gets the following error

Error from server (Forbidden): pods is forbidden: User “system:anonymous” cannot list resource “pods” in API group “” in the namespace “default”

Solution

Switch context / namespace and set default namespace you have permissions

kubectl config set-context –current –namespace=<MYNAMESPACE>

Check the configured namespace

kubectl config view | grep -i namespace

 

 

Uploaded files:
If you have found my website, guides, articles or videos useful, please buy me a coffee