당신의 스타트업을 성장시킬 준비가 되셨나요? 🚀 스타트업 프로그램을 신청하고, 파격적인 무료 혜택을 받아보세요!

KAC

How to Grant Roles to Users

November 29, 2024

Curious?
Reveal the Magic!

Please fill out the form to unlock your exclusive content!

QueryPie values your privacy. Please check out our Terms & Privacy Policy.

Overview

You can manage access policies for Kubernetes clusters within your organization. Kubernetes policies operate as Policy as Code (PaC), functioning in YAML format. These policies allow you to define access rules for cluster resources, API scopes, resource tags, and user attributes, as well as configure accessible IP addresses. Once policies are defined, they can be compiled into Roles, which aggregate multiple policies into a single role definition.

QueryPie supports Role-Based Access Control (RBAC), enabling organizations to allow or restrict user access to Kubernetes based on predefined roles.

Setting Kubernetes Access Policies

STEP 1 Navigate to the Policies menu and click the Create Policy button and enter the following details:

  • Name: A unique name to identify the policy.
  • Description: Provide detailed information about the policy.

STEP 2 Select the created policy and click the Go to Editor Mode button. Modify the policy content in one of the following ways:

  • Use the buttons on the right panel to insert or modify code.
  • Directly edit the code in the Code Editor.
    • Use the Errors tab at the bottom to debug errors in the edited code.

STEP 3 Once the policy is defined, click the Save button in the top-right corner to save your change

Creating a Role

STEP 1 Navigate to the Roles menu and click the Create Role button and enter the following details:

  • Name: A unique name to identify the role.
  • Description: Provide detailed information about the role.

STEP 2 Select the created role and click the Assign Policies button. Add one or more previously created policies to the role.

  • Users/Groups: Displays the list of users or groups assigned to the role.
  • Clusters: Displays the list of clusters accessible with the role.

Granting a Role

STEP 1 Navigate to the Access Control menu and choose the user or group to whom the role will be assigned.

STEP 2 Click the Grant Roles button on the right, and heck the box for one or more roles to assign and set an expiration date for the role.

STEP 3 Click the Grant button to finalize the assignment.

  • Go to the Clusters tab to view the resources accessible under the assigned role.

3 Minutes to Wow !

3 QueryPie, !

Take a Virtual Tour