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

« Previous Version 3 Current »

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