Creating sample user
IMPORTANT: Make sure that you know what you are doing before proceeding. Granting admin privileges to Dashboard’s Service Account might be a security risk.
For each of the following snippets for and ClusterRoleBinding
, you should copy them to new manifest files like dashboard-adminuser.yaml
and use kubectl apply -f dashboard-adminuser.yaml
to create them.
We are creating Service Account with name admin-user
in namespace first.
Now we need to find token we can use to log in. Execute following command:
It should print something like:
Now copy the token and paste it into Enter token
field on the login screen.
Click Sign in
button and that’s it. You are now logged in as an admin.
Remove the admin ServiceAccount
and .
Copyright 2020 The Kubernetes Dashboard Authors