You can define who has access to a cluster, cluster groups, and Spaces in your organization by using role-based access control (RBAC) on Tanzu Platform for Kubernetes. Tanzu uses secure-by-default RBAC to manage user permissions at each level of the hierarchical structure for your organization.
Each object is protected by an access policy that defines who has access to that resource. The policies are inherited down through the organizational hierarchy.
You can set up user access to a Space in your Project by using the Tanzu CLI.
Set your context to the Tanzu Project by running:
tanzu project use <project-name>
(Optional) List the Spaces in the Project by running:
tanzu space list
Select the Space to which you want to add the user by running:
tanzu space use <space-name>
Add the user to the Space by running:
tanzu rbac rolebinding create <name> --user <email-address> --role <role-name>
Where <role-name>
is the role, such as space.admin
.
You can set up user access to a cluster or cluster group in your Project by using Tanzu Platform hub or the Tanzu CLI.
tanzu operations iam add-binding -s clustergroup -n <cluster-group-name> -r clustergroup.admin -u \
<email-address>