In this guide, we will find out how to create a new user using Service Account mechanism of Kubernetes, grant this user admin permissions and log in to Dashboard using bearer token tied to this user.
We are creating Service Account with name my-admin-user
in namespace kube-system
first.
kubectl create serviceaccount my-admin-user -n kube-system
kubectl get sa