Home > Storage > PowerFlex > White Papers > SUSE Rancher and RKE Kubernetes cluster using CSI Driver on DELL EMC PowerFlex > Service account token for the Rancher Kubernetes cluster
The service account must have the following privileges:
Note: The admin-user service account in the kube system namespace contains all the privileges. You can use the token of this account or an existing similar service account. Alternatively, you can create a service account that is bound to a cluster role that contains these privileges and provide the token of this service account.
kubectl create serviceaccount dashboard -n default kubectl create clusterrolebinding dashboard-admin -n default --clusterrole=cluster-admin --serviceaccount=default:dashboard |
kubectl get secret $(kubectl get serviceaccount dashboard -o jsonpath="{.secrets[0].name}") -o jsonpath="{.data.token}" | base64 –decode
|