<p>I installed vanilla kubernetes 1.24, cluster is up and healthy but when i try to install kubernetes-dashboard, i realized can not access dashboard token. Before 1.24 i just describe token and get.</p>
<p>Normally when sa created, secret should be created automaticaly, BUT NOW, I just tried create service account then secret not created automaticaly.</p>
<p>just create sa with: &quot;kubectl create serviceaccount servicename&quot; you should see secret as a servicename-token with kubectl get secrets. But not created..</p>
<p>anyone faced this problem?</p>

<p>For your question “Anyone faced this problem?”, the answer is that all the people that install version 1.24 are going to face the same behavior, as this <a href="https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/" rel="nofollow noreferrer">documentation</a> indicates, this version includes features such as the <em><strong>LegacyServiceAccountTokenNoAutoGeneration</strong></em>, the one that is the root cause of what you are experiencing.</p>
<p>So, the workaround right now is to manually create the token, as this <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#manually-create-a-service-account-api-token" rel="nofollow noreferrer">guide</a> indicates.</p>
