Manage Permissions
When multiple users access a Kubernetes cluster, you can assign permissions for specific APIs or namespaces to define access scopes. You can apply Kubernetes’ role-based access control (RBAC, Role-based access control) feature to set permissions for each cluster or namespace. You can create and manage ClusterRoles, ClusterRoleBindings, Roles, and RoleBindings.
ClusterRole, ClusterRoleBinding, Role, and RoleBinding services are set by default to the cluster (namespace) selected when creating the service. Even if you select a different item in the list, the default cluster (namespace) setting is retained.
- To select a different cluster (namespace), click the list in the top‑left corner of the list page. * Select the cluster and namespace to modify from the list and click the View button. * You can view the services created in the selected cluster/namespace.
- The RBAC API declares the following four types of Kubernetes objects.
- Role
- ClusterRole RoleBinding
- ClusterRoleBinding
- For detailed information on RBAC description and modification, refer to the Kubernetes authentication and authorization section (https://kubernetes.io/docs/reference/access-authn-authz/authentication/).
Managing Cluster Roles
You can set and manage access permissions on a per-cluster basis. You can also set permissions for APIs or resources that are not limited to a namespace.
Create ClusterRole
To create a cluster role, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Navigate to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Cluster Role under the Permissions menu. 2. Go to the Cluster role list page.
- Cluster Role List page, after selecting the cluster and namespace from the list at the top left, click Create Object.
- Enter the object information in the Object Creation Popup and click the Create button.
Check detailed information of the cluster role
To view detailed information about the cluster role, follow these steps.
- All Services > Container > Kubernetes Engine menu, click it. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Cluster Role under the Permissions menu. 2. Go to the Cluster role list page.
- Cluster Role List page, select the cluster and namespace from the list at the top left, then click Search.
- Select the item you want to view detailed information for on the Cluster Role List page. 4. Navigate to the Cluster role details page.
- If you select System Object Display at the top of the list, all items except the Kubernetes object entries will be shown.
- Click each tab to view the service information.
Category Detailed descriptionDelete ClusterRole Delete the cluster role Detailed Information Detailed information of the cluster role can be viewed YAML The resource file of the ClusterRole can be edited in the YAML editor - Edit button, modify the resource, then click the Done button to apply the changes
- When editing content, click the Diff button to view the changed content
event Check events that occurred within the cluster role Account information Check basic information about the Account, such as name, location, and creation timestamp. Metadata Information Check the metadata information of the ClusterRole Policy Rule Information View the policy rule information of a ClusterRole - Resources: List of resources to which the rule applies
- Non-Resource URLs: Non-Resource URLs are the set of partial URLs that a user needs to access
*is allowed but only as the final segment of the path
- Since non-resource URLs are not namespaced, this field can only be applied to a ClusterRole referenced by a ClusterRoleBinding
- A rule can apply to an API resource (e.g., “pods” or “secrets”) or a non-resource URL path (e.g., “/api”), but not to both
- Resource Names: Resource names are an optional whitelist of names to which the rule applies. An empty set means everything is allowed
- Verbs: Verbs refer to the API verbs used in resource requests such as get, list, create, update, patch, watch, delete, deletecollection
- For more details, refer to the 쿠버네티스 공식 문서 > API Verbs
Table. Cluster role detailed information items
Delete cluster role
To delete the cluster role, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Cluster Role under the Permissions menu. 2. Go to the Cluster role list page.
- Cluster Role List page, after selecting the cluster and namespace from the list at the top left, click Search.
- On the Cluster role list page, select the items you want to delete. 4. Navigate to the Cluster role details page.
- On the Cluster Role Details page, click Delete Cluster Role.
- Notification dialog appears, click the Confirm button.
Managing ClusterRoleBinding
You can create and manage a cluster role binding by linking a cluster role with a specific target.
Create ClusterRoleBinding
To create a ClusterRoleBinding, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click ClusterRoleBinding under the Permissions menu. 2. Go to the Cluster Role Binding List page.
- Cluster Role Binding List On the page, after selecting the cluster and namespace from the list at the top left, click Create Object.
- Enter the object information in the Object Creation Popup and click the Create button.
View detailed information of ClusterRoleBinding
To view detailed information about the ClusterRoleBinding, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click ClusterRoleBinding under the Permissions menu. 2. Navigate to the Cluster Role Binding List page.
- On the Cluster Role Binding List page, select the cluster and namespace from the list at the top left, then click Search.
- Cluster Role Binding List page, select the item for which you want to view detailed information. 4. Navigate to the Cluster Role Binding Details page.
- If you select System Object Display at the top of the list, all items except the Kubernetes object entries will be shown.
- Click each tab to view the service information.
Category Detailed descriptionDelete ClusterRoleBinding Delete the cluster role binding Detailed Information View detailed information of the ClusterRoleBinding YAML The resource file of the cluster role binding can be edited in the YAML editor - Edit button, modify the resource, and then click the Done button to apply the changes
- When editing content, click the Diff button to view the changes
event Check the events that occurred within the ClusterRoleBinding Account information Check basic information about the Account, such as name, location, and creation timestamp. Metadata Information Check the metadata information of the ClusterRoleBinding Role/Target Information Check the role and target information of the ClusterRole Table. ClusterRoleBinding detailed information items
Delete ClusterRoleBinding
To delete a ClusterRoleBinding, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click ClusterRoleBinding under the Permissions menu. 2. Navigate to the Cluster Role Binding List page.
- Cluster Role Binding List page, select the cluster and namespace from the list at the top left, then click View.
- Select the item you want to delete on the Cluster Role Binding List page. 4. Go to the Cluster Role Binding Details page.
- On the Cluster Role Binding Details page, click Delete Cluster Role Binding.
- Notification dialog appears, click the Confirm button.
Manage roles
A role refers to a rule that specifies permissions for a particular API or resource. You can create and manage permissions that allow access only to the namespace to which the role belongs.
Create role
To create a role, follow the steps below.
- All Services > Container > Kubernetes Engine menu, click it. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Role under the Permission menu. 2. Go to the Roll List page.
- On the Role List page, after selecting the cluster and namespace from the list in the upper left, click Create Object.
- Enter the object information in the Object Creation Popup and click the Create button.
Check detailed roll information
To view detailed roll information, follow the steps below.
- Click the All Services > Container > Kubernetes Engine menu. 1. Navigate to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Role under the Permission menu. 2. Go to the Role List page.
- Roll List page, after selecting the cluster and namespace from the list at the top left, click View.
- Roll List page, select the item you want to view detailed information for. 4. Roll Details page is accessed.
- Selecting Show system objects at the top of the list displays all items except the Kubernetes object entries.
- Click each tab to view the service information.
Category Detailed descriptionDelete role Delete the role Detailed Information View detailed information of the roll YAML Roll’s resource file can be edited in the YAML editor - Click the Edit button, modify the resource, then click the Done button to apply the changes
- When editing content, click the Diff button to view the changed content
event Check events that occurred within LoL Account information Check basic information about the Account, such as name, location, creation date and time, etc. Metadata Information Check the metadata information of LoL Policy Rule Information Check the policy rule information for a Role - Resources: List of resources to which the rule applies
- Non-Resource URLs: Non-Resource URLs are the set of partial URLs that a user must access
*is allowed, but only as the final segment of the entire path
- Since non-resource URLs are not namespaced, this field can only be applied to a ClusterRole referenced by a ClusterRoleBinding
- A rule can apply to an API resource (e.g., “pods” or “secrets”) or a non-resource URL path (e.g., “/api”), but not to both
- Resource Names: Resource names are an optional whitelist of names to which the rule applies; an empty set means everything is allowed
- Verbs: Verbs are the API actions used in resource requests such as get, list, create, update, path, watch, delete, deletecollection
- For more details, see the Kubernetes official documentation > API Verbs
Table. Role detailed information items
Delete role
To delete the role, follow the steps below.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Role under the Permissions menu. 2. Go to the Role List page.
- On the Roll List page, select the cluster and namespace from the list at the top left, then click View.
- On the Role List page, select the item you want to delete. 4. Navigate to the Roll Details page.
- On the Roll Details page, click Delete Roll.
- When the Notification dialog appears, click the Confirm button.
Managing Role Bindings
You can create and manage role bindings by linking a role to a specific subject.
Create Role Binding
To create a roll binding, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Role Binding under the Permissions menu. 2. Go to the Roll Binding List page.
- On the Roll Binding List page, select the cluster and namespace from the list at the top left, then click Create Object.
- In the Object Creation Popup, enter the object information and click the Create button.
Check detailed information of role binding
To view detailed Roll Binding information, follow these steps.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Role Binding under the Permissions menu. 2. Go to the Roll Binding List page.
- On the Roll Binding List page, select the cluster and namespace from the list in the upper left, then click Search.
- Roll Binding List page, select the item you want to view detailed information for. 4. Go to the Roll Binding Details page.
- If you select Show System Objects at the top of the list, all items except the Kubernetes object entries will be displayed.
- Click each tab to view the service information.
Category Detailed descriptionDelete roll binding Delete roll binding Detailed Information View detailed information of roll binding YAML The resource file of RollBinding can be edited in a YAML editor - Click the Edit button, edit the resource, and then click the Done button to apply the changes
- When editing content, click the Diff button to view the changes
event Check events that occurred within the role binding Account information Check basic information about the Account, such as its name, location, and creation date/time. Metadata Information Check the metadata information of the roll binding Role/Target Information Check the role’s responsibilities and target information. Table. RoleBinding detailed information items
Delete Role Binding
To delete the roll binding, follow the steps below.
- Click the All Services > Container > Kubernetes Engine menu. 1. Go to the Service Home page of Kubernetes Engine.
- On the Service Home page, click Role Binding under the Permissions menu. 2. Go to the Roll Binding List page.
- On the Roll Binding List page, select the cluster and namespace from the list in the upper left, then click View.
- Select the item you want to delete on the Roll Binding List page. 4. Go to the Roll Binding Details page.
- On the Roll Binding Details page, click Delete Roll Binding.
- Notification dialog appears, click the Confirm button.