<p>I'm trying to install a helm package on a kubernetes cluster which allegedly has RBAC disabled.
I'm getting a permission error mentioning <code>clusterroles.rbac.authorization.k8s.io</code>, which is what I'd expect if RBAC was <em>enabled</em>.</p>

<p>Is there a way to check with <code>kubectl</code> whether RBAC really is disabled?</p>

<p>What I've tried:</p>

<ul>
<li><code>kubectl describe nodes --all-namespaces | grep -i rbac</code> : nothing comes up</li>
<li><code>kubectl describe rbac --all-namespaces | grep -i rbac</code> : nothing comes up</li>
<li><code>kubectl config get-contexts | grep -i rbac</code> : nothing comes up</li>
<li><code>k get clusterroles</code> it says "No resources found", not an error message. So does that mean that RBAC <em>is</em> enabled?</li>
<li><code>kuebctl describe cluster</code> isn't a thing</li>
</ul>

<p>I'm aware that maybe this is the <a href="https://meta.stackexchange.com/questions/66377/what-is-the-xy-problem">x-y problem</a> because it's possible the helm package I'm installing is expecting RBAC to be enabled. But still, I'd like to know how to check whether or not it is enabled/disabled.</p>

falsePockets
<p>You can check this by executing the command <code>kubectl api-versions</code>; if RBAC is enabled you should see the API version <code>.rbac.authorization.k8s.io/v1</code>.</p>

<p>In AKS, the best way is to check the cluster's resource details at <a href="https://resources.azure.com" rel="noreferrer">resources.azure.com</a>.
If you can spot <code>"enableRBAC": true</code>, your cluster has RBAC enabled.
Please note that existing non-RBAC enabled AKS clusters cannot currently be updated for RBAC use. (thanks @DennisAmeling for the clarification)</p>
