<p>While reading this blog-post <a href="https://raesene.github.io/blog/2023/04/08/lets-talk-about-kubelet-authorization/" rel="nofollow noreferrer">https://raesene.github.io/blog/2023/04/08/lets-talk-about-kubelet-authorization/</a></p>
<p>Found that there are multiple authorisation modes supported, my understanding was ABAC &amp; now RBAC.</p>
<p>Read that in kubelet config in certain config we have this flag <code>--authorization-mode=Node,RBAC</code>.</p>
<p>Wanted to understand there some <code>kubectl</code> command to find which all authorisation modes are present/supported ?</p>

Sumit Murari
<p>If you are using local cluster, to find out which authorization modes are supported in your Kubernetes cluster, you can use the <code>kubectl</code> command to retrieve this information. You can achieve this by checking the cluster configuration, specifically the <code>kube-apiserver</code> component.</p>
<p>Here's how you can do it:</p>
<pre class="lang-bash prettyprint-override"><code>kubectl describe pod kube-apiserver-&lt;your-api-server-pod-name&gt; -n kube-system
</code></pre>
<p>Replace <code>&lt;your-api-server-pod-name&gt;</code> with the actual name of your <code>kube-apiserver</code> pod in the <code>kube-system</code> namespace.</p>
<p>Look for the <code>--authorization-mode</code> flag in the output. This flag will specify which authorization modes are enabled in your cluster. It might look something like this:</p>
<pre class="lang-yaml prettyprint-override"><code>--authorization-mode=Node,RBAC
</code></pre>
<p>In the example above, both Node and RBAC authorization modes are enabled in the cluster. You can have different modes enabled based on your cluster configuration, and this command will provide you with the authoritative list of enabled authorization modes.</p>
