<p>I am trying to login kubernetes dashboard with this <a href="https://paradisetechsoftsolutions7.medium.com/how-to-access-kubernetes-dashboard-token-74891365334" rel="nofollow noreferrer">article</a></p>
<pre><code>$kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml
$kubectl proxy
</code></pre>
<p>I successfully started the dashboard server, however I try to make token.</p>
<pre><code>$kubectl create service account dashboard -n default
</code></pre>
<p>It shows error like this <code>error: unknown command &quot;account dashboard&quot;</code></p>
<p>There is mention to authentication in official <a href="https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/" rel="nofollow noreferrer">article</a></p>
<p>How can I solve this?</p>

whitebear
<p><code>serviceAccount</code> is one word, like so:</p>
<pre><code>$ kubectl create serviceaccount dashboard -n default
serviceaccount/dashboard created
</code></pre>
<p>Small post note: the dashboard isn't really recommended to be ran in prod anymore and for local minikube environments you can now run the following to bring the dashboard up:</p>
<pre><code>minikube dashboard
</code></pre>
