<p>I'm trying to follow the instructions at <a href="https://github.com/kubernetes/dashboard/blob/master/docs/user/access-control/creating-sample-user.md" rel="noreferrer">https://github.com/kubernetes/dashboard/blob/master/docs/user/access-control/creating-sample-user.md</a> to create a Kubernetes Dashboard token.  However, when I run the specified command, I get an error</p>
<pre><code>% kubectl -n kubernetes-dashboard create token admin-user
Error: must specify one of -f and -k

error: unknown command &quot;token admin-user&quot;
See 'kubectl create -h' for help and examples
</code></pre>
<p>If I jump back <a href="https://github.com/kubernetes/dashboard/commit/f78bd53d7561eb614308b1aff5a134668244f2a4#diff-8c263c6ea3af03864ae35dfca688964ee8b03f118a59b904b409c09a34b1309f" rel="noreferrer">in the doc history</a>, I see a different, more verbose command that I can run</p>
<pre><code>% kubectl -n kubernetes-dashboard get secret $(kubectl -n kubernetes-dashboard get sa/admin-user -o jsonpath=&quot;{.secrets[0].name}&quot;) -o go-template=&quot;{{.data.token | base64decode}}&quot;
</code></pre>
<p>This seems to work OK and PR for the doc change mentions &quot;version 1.24&quot; but doesn't mention what piece of software version 1.24 refers to (<code>kubectl</code>? The Dashboard? Kuberenetes itself? <code>kind</code>? Something else?)</p>
<p>So what's going on with that first command?  Why doesn't it work?</p>

Alana Storm
<p>If your version is lower than 1.24, please run the following command.</p>
<pre><code>kubectl -n kubernetes-dashboard get secret $(kubectl -n kubernetes-dashboard get sa/admin-user -o jsonpath=&quot;{.secrets[0].name}&quot;) -o go-template=&quot;{{.data.token | base64decode}}&quot;
</code></pre>
<p>This works in my case. Thanks.</p>
