Grant project admin access to Kubernetes resources in Kommander

Configure role-based access control for namespaced Kubernetes resources in Kommander

Before you begin

This procedure requires the following configurations and background:

Create role-based access control persona

This procedure describes how a cluster administrator can assign project administrator level access to Kubernetes and Kommander resources in the Kommander UI.

  • Project admin: these users can administer projects they have specific access to.

If you have not done so already, create a group to represent this persona. For more details on groups, see the Identity Providers page and the Identity Provider tutorial.

At this point, you have already assigned users to the group that represents the persona. You must now change the resource access level for this persona by associating roles with the groups using policies.

Grant workspace access to project admin persona

The Project Admin persona must have view or greater access to the workspace that contains the project.

In the Kommander UI, do the following:

  1. Select a Workspace in the header drop-down. This must be the workspace in which the project your group will administrate will live.
  2. Select Access Control in the side menu.
  3. Select the Cluster Policies tab.
  4. Select Add or remove roles and select the Workspace View Role and Kommander Workspace View Role roles.
  5. Select Save.

Grant project access to project admin persona

The Project Admin persona should have admin access to the project. This allows users to administer all namespaced resources in the project namespace on the management cluster, as well as all namespaced resources in the project namespace on the target clusters.

In the Kommander UI, do the following:

  1. Select a Workspace in the header drop-down.
  2. Select Projects and select or create the project to grant access to.
  3. Select the Policies tab.

Project Policies Table Project Policies Table

The default role for this persona:

  • Kommander Project Admin Role: because this is a Kommander Role type role, it applies to the management cluster. This role grants admin access to the project namespace on the management cluster.
  1. Assign this role to the Project Admin group.

Project Policies Edit Project Policies Form