Could someone pls tell me how to view all the available options in resources in . . .

Sairam:
could someone pls tell me how to view all the available options in resources in clusterroles -> rules…?

kubectl explain command shows only little info -

root@controlplane:~# k explain clusterrole.rules --recursive
KIND:     ClusterRole
VERSION:  <http://rbac.authorization.k8s.io/v1|rbac.authorization.k8s.io/v1>

RESOURCE: rules &lt;[]Object&gt;

DESCRIPTION:
     Rules holds all the PolicyRules for this ClusterRole

     PolicyRule holds information that describes a policy rule, but does not
     contain information about who the rule applies to or which namespace the
     rule applies to.

FIELDS:
   apiGroups    &lt;[]string&gt;
   nonResourceURLs      &lt;[]string&gt;
   resourceNames        &lt;[]string&gt;
   resources    &lt;[]string&gt;
   verbs        &lt;[]string&gt;
root@controlplane:~# 

Sairam:
i mean, how do we know that there are resource options like - storageclasses, persistentvolumes, etc etc

Daz Mac:
kubectl api-resources

Sairam:
thanks @Daz Mac