<p>How can I get a list of subresources that can be used in an RBAC role?</p>

<p>For example, I know that <code>pods/exec</code> is a valid resource (discovered by searching SO actually), but I cannot figure out where this is officially mentioned.</p>

<p><code>kubectl api-resources</code> gives me <code>pods</code> as a valid resource, but not <code>pods/exec</code>.</p>

<p>I'm looking at the Kubernetes API website (<a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.14/" rel="nofollow noreferrer">https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.14/</a>), but if that information is there, I'm unable to find it.</p>

<p>How are mere mortals like me supposed to find this information?</p>

Jeroen Jacobs
<p>I do agree that it does not give you much details. I had the same issue.</p>

<p>I came across this a couple of weeks ago.</p>

<pre><code>https://stackoverflow.com/a/51289417/2752291
</code></pre>
