I followed this tutorial https://github.com/kubernetes/dashboard/blob/master/docs/user/access-control/creating-sample-user.md However, after finished all steps, i stll cant see any account while using kubectl get secreats command.
Asked
Active
Viewed 106 times
1 Answers
0
you should be using below command to list the service accounts
kubectl get sa -n <namespace>

P Ekambaram
- 15,499
- 7
- 34
- 59
-
Thx!But there is no tokens in service account. – Lzjxc May 17 '22 at 08:27
-
It appears like from1.24 version service account secret is not automatically generated. it should be manually created. Follow the link https://stackoverflow.com/questions/72256006/service-account-secret-is-not-listed-how-to-fix-it – P Ekambaram May 17 '22 at 09:57