/
Unable to list Kube related resources
Unable to list Kube related resources
Problem
Unable to list Kube related resources (pods,jobs,services,etc).
Error: User "system:serviceaccount:default:default" cannot list pods in the namespace "default"
Cause
Cluster role binding to services has not been performed.
Fix
Use the command given below to create the cluster role and bind all services together.
#kubectl create clusterrolebinding serviceaccounts-cluster-admin --clusterrole=cluster-admin --group=system:serviceaccounts
, multiple selections available,
Related content
Kubernets Issues
Kubernets Issues
More like this
API access issue
API access issue
More like this
Kube Pods stay in the terminating state
Kube Pods stay in the terminating state
More like this
Kubernetes Pod status Pending
Kubernetes Pod status Pending
More like this
Kubernetes X509 certification issue while executing kubectl
Kubernetes X509 certification issue while executing kubectl
More like this
Knowledge Base
Knowledge Base
More like this