<p>I just learned a month using kubernetes but i have problem after i apply file serviceaccount and get from serviceaccount, i don't have token from describe serviceaccount. How to i get token from serviceaccount ?</p>
<p><a href="https://i.stack.imgur.com/Y6GbQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y6GbQ.png" alt="picture file" /></a></p>
<p><a href="https://i.stack.imgur.com/F4HnW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F4HnW.png" alt="picture apply" /></a></p>
<p>describe serviceaccount name</p>
<p><a href="https://i.stack.imgur.com/lkHhI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lkHhI.png" alt="picture describe" /></a></p>

Aji Tirto Prayogo
<p>you need to request a service account token, as <a href="https://github.com/kubernetes/kubernetes/pull/108309" rel="nofollow noreferrer">after this release</a> the default token is no longer available.</p>
<pre><code>kubectl create token SERVICE_ACCOUNT_NAME
</code></pre>
<blockquote>
<p>Secret API objects containing service account tokens are no longer auto-generated for every ServiceAccount.</p>
</blockquote>
<p><a href="https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-token-em-" rel="nofollow noreferrer">create-token</a></p>
