<p>could anyone help me with K8s dashboarding problem as below:</p>
<pre><code>flag needs an argument: 'f' in -f[root@localhost ~]# kubectl apply -f kubernetes-dashboard.yaml 
secret &quot;kubernetes-dashboard-certs&quot; configured
serviceaccount &quot;kubernetes-dashboard&quot; configured
service &quot;kubernetes-dashboard&quot; configured
unable to decode &quot;kubernetes-dashboard.yaml&quot;: no kind &quot;Role&quot; is registered for version &quot;rbac.authorization.k8s.io/v1&quot;
unable to decode &quot;kubernetes-dashboard.yaml&quot;: no kind &quot;RoleBinding&quot; is registered for version &quot;rbac.authorization.k8s.io/v1&quot;
unable to decode &quot;kubernetes-dashboard.yaml&quot;: no kind &quot;Deployment&quot; is registered for version &quot;apps/v1&quot;
</code></pre>
<p>Thank you in advance.</p>

wejizhang
<p>This means either your kubernetes version is too old or RBAC API is not enabled in your cluster.</p>
<p>You can check <code>&lt;apiserver_ip&gt;:&lt;apiserver_port&gt;/apis</code> endpoint. If you use <code>kubectl proxy</code> then check <code>http://localhost:8001/apis</code>. It should list enabled apis and their versions. You can use that information to adjust deploy yaml.</p>
<p>If RBAC API is not enabled you need to enable it and the process depends on how you installed the cluster.</p>
