Manage access to your cluster and its resources by assigning Kubernetes RBAC roles to local users. If you have not created local users yet, see Create Local Users after Installing Kommander or Create Local Users during the Kommander Installation.
Assign a Role - Cluster Admin Example
Create the following
<example_email>with the user's email address or a username.
cluster-adminwith the RBAC role you want to assign to a user.
cat <<EOF | kubectl apply -f - apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: cluster-admin roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects: - apiGroup: rbac.authorization.k8s.io kind: User name: <example_email> EOF
After assigning the previous role to
<example_email>, the user is able to log in to the cluster using the credentials you assigned in Create Local Users after Installing Kommander or Create Local Users during the Kommander Installation.
The Login page and cluster URL is the same for the default admin user and the local users you create with this method.
For more information on RBAC resources in DKP, see Granting Access to Kubernetes and Kommander Resources.
For general information on RBAC as a Kubernetes resource, see the official Kubernetes RBAC documentation.