Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »

Problem

Unable to list Kube realted resources (pods,jobs,services,etc)

Error: User "system:serviceaccount:default:default" cannot list pods in the namespace "default"

Cause

Cluster role binding to services is not performed

Fix

Use below command which creates the cluster role and binds all services


#kubectl create clusterrolebinding serviceaccounts-cluster-admin --clusterrole=cluster-admin --group=system:serviceaccounts






  • No labels