<p>I'm having some problems with the Kubernetes Dashboard not showing any information when I tried to access it:</p>
<p><a href="https://i.stack.imgur.com/Pr5Hy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pr5Hy.png" alt="enter image description here" /></a></p>
<p>I checked the version that I'm using:</p>
<pre><code>$ kubectl version --short
Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
Client Version: v1.26.0
Kustomize Version: v4.5.7
Server Version: v1.26.0+k3s1
</code></pre>
<p>Both the client and the server versions are indeed the same, so I'm not sure what is causing the Dashboard UI to not show any information? Any ideas?</p>
<p>EDIT: I even lowered the version of my kubectl and my k3s server, but still I do not see the Unknown error go away.</p>
<pre><code>Client Version: v1.25.0
Kustomize Version: v4.5.7
Server Version: v1.25.6+k3s1

$ kubectl get clusterrolebinding admin-user
NAME         ROLE                        AGE
admin-user   ClusterRole/cluster-admin   19h

$ kubectl get sa -n kubernetes-dashboard
NAME                   SECRETS   AGE
default                0         19h
kubernetes-dashboard   0         19h
admin-user             0         19h
</code></pre>

joesan
<p>This might happen for various reasons like Either <strong>ClusterRoleBinding</strong> or <strong>ServiceAccount</strong> is not created properly. Sometimes it will be related to Compatibility as well. Try these troubleshooting steps</p>
<ol>
<li>In case if you are creating a <strong>Service Account</strong> and <strong>ClusterRoleBinding</strong> manually then make sure you are creating in proper namespace and giving proper configurations and roles.</li>
</ol>
<p>you can use these commands to get the detials about SA and rolebindings</p>
<pre><code>$kubectl get sa -n kubernetes-dashboard
NAME                   SECRETS   AGE
admin-user             0         61m
    
$kubectl get clusterrolebinding admin-user
NAME         ROLE                        AGE
admin-user   ClusterRole/cluster-admin   62m
</code></pre>
<ol start="2">
<li>Check whether the <code>dashboard</code> version is compatible with the
<code>server</code> version. You can find the compatibility information in
<a href="https://github.com/kubernetes/dashboard/releases" rel="nofollow noreferrer">official kubernetes-dashboard
page</a> on github.
If your server is not compatible then try lowering the version.(In your case try lowering the version to 1.25).</li>
<li>Check this <a href="https://github.com/AcalephStorage/kubernetes-dashboard#documentation" rel="nofollow noreferrer">official documentation</a> for detailed
kubernetes-dashboard troubleshoot</li>
</ol>
<p>These SO links have similar issues <a href="https://stackoverflow.com/questions/68885798/kubernetes-dashboard-web-ui-has-nothing-to-display">SO1</a> <a href="https://stackoverflow.com/questions/59141055/kubernetes-dashboard-unknown-server-error-after-login">SO2</a></p>
