Managing Permissions
When multiple users access the Kubernetes cluster, you can grant permissions by specific API or namespace and specify the access range. You can apply the Role-Based Access Control (RBAC) feature of Kubernetes to set permissions by cluster or namespace. You can create and manage ClusterRole, ClusterRoleBinding, Role, and RoleBinding.
ClusterRole, ClusterRoleBinding, Role, RoleBinding services are set to the cluster (namespace) selected when the service is created by default. Even if you select other items in the list, the default cluster (namespace) setting is maintained.
- To select a different cluster (namespace), click the gear button on the right side of the list. In the Cluster/Namespace Settings popup window, select the cluster and namespace you want to change and click the OK button. You can view the services created in the selected cluster/namespace.
- RBAC API declares four kinds of Kubernetes objects.
- Role
- ClusterRole
- RoleBinding
- ClusterRoleBinding
- For detailed explanation and modification of RBAC, please refer to the Kubernetes authentication and authorization item (https://kubernetes.io/docs/reference/access-authn-authz/authentication/)
Managing Cluster Roles
You can set and manage access permissions on a cluster unit basis. You can also set permissions for APIs or resources that are not limited to a namespace.
Creating a Cluster Role
To create a cluster role, follow these steps.
- Click All services > Container > Kubernetes Engine menu. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click ClusterRole under the Authorities menu. It moves to the ClusterRole list page.
- Cluster Role List page, select the cluster and namespace from the gear button at the top left, then click Create Object.
- Enter object information in the object creation popup window and click the OK button.
Check Cluster Role Details
To view detailed information about the cluster role, follow these steps.
- Click All services > Container > Kubernetes Engine menu. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click 클러스터롤 under the 권한 menu. It moves to the 클러스터롤 목록 page.
- Cluster Role List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- Cluster Roll List page, select the item you want to check the detailed information. Move to the Cluster Roll Detail page.
- Selecting System Object View at the top of the list displays all items except Kubernetes object entries.
- Click each tab to check the service information.
| Classification | Detailed Description |
|---|---|
| Cluster Role Deletion | Delete cluster role |
| Detailed Information | Possible to check detailed information of cluster role |
| YAML | The resource file of the cluster role can be modified in the YAML editor
|
| Event | Check the event that occurred within the cluster role |
| Account Information | Account name, location, creation time, etc., basic information about the Account can be checked |
| Metadata Information | Check the metadata information of the cluster role |
| Policy Rule Information | Check policy rule information for ClusterRole
|
Deleting a Cluster Role
To delete a cluster role, follow this procedure.
- Click all services > Container > Kubernetes Engine menu. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click ClusterRole under the Authority menu. It moves to the ClusterRole list page.
- Cluster Role List page, select the cluster and namespace from the gear button at the top left, then click OK.
- Select the item to delete on the Cluster Role List page. It moves to the Cluster Role Detail page.
- Cluster Role Detail page, click Delete Cluster Role.
- When the Notification Confirmation Window appears, click the Confirm button.
Managing Cluster Role Bindings
You can create and manage cluster role bindings by connecting cluster roles and specific targets.
Creating Cluster Role Binding
To create a cluster role binding, follow these steps.
- Click all services > Container > Kubernetes Engine menu. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click ClusterRoleBinding under the Authority menu. It moves to the ClusterRoleBinding list page.
- Cluster Role Binding List page, select the cluster and namespace from the gear button at the top left, then click Create Object.
- Object Creation Popup에서 오브젝트 정보를 입력하고 Confirm 버튼을 클릭하세요.
Check Cluster Role Binding Details
To check the cluster role binding details, follow the next procedure.
- Click all services > Container > Kubernetes Engine menu. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click ClusterRoleBinding under the Authority menu. It moves to the ClusterRoleBinding list page.
- Cluster Role Binding List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- On the Cluster Role Binding List page, select the item you want to check the detailed information. It moves to the Cluster Role Binding Detail page.
- Selecting Show System Objects at the top of the list displays all items except Kubernetes object entries.
- Click each tab to check the service information.
| Classification | Detailed Description |
|---|---|
| Cluster Role Binding Deletion | Delete cluster role binding |
| Detailed Information | Check the detailed information of the cluster role binding |
| YAML | The resource file of ClusterRoleBinding can be modified in the YAML editor
|
| Event | Check the event that occurred within the cluster role binding |
| Account Information | Account name, location, creation time, etc., basic information about the Account can be checked |
| Metadata Information | Check the metadata information of the cluster role binding |
| Role/Target Information | Check the role and target information of the cluster role |
Deleting Cluster Role Binding
To delete a cluster role binding, follow these steps.
- Click all services > Container > Kubernetes Engine menu. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click ClusterRoleBinding under the Authority menu. It moves to the ClusterRoleBinding list page.
- Cluster Role Binding List page, select the cluster and namespace from the gear button at the top left, then click Confirm.
- Cluster Role Binding List page, select the item you want to delete. It moves to the Cluster Role Binding Details page.
- Cluster Role Binding Detail page, click Delete Cluster Role Binding.
- When the Notification Confirmation Window appears, click the Confirm button.
Managing Roles
A role is a set of rules that explicitly define permissions for a specific API or resource, and it can create and manage permissions that can only be accessed within the namespace to which the role belongs.
Create Role
To create a role, follow these steps.
- Click All services > Container > Kubernetes Engine menu. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click 롤 under the 권한 menu. It moves to the 롤 목록 page.
- Roll list page, select cluster and namespace from the gear button at the top left, then click Create Object.
- Object Creation Popup에서 오브젝트 정보를 입력하고 Confirm 버튼을 클릭하세요.
Check Roll Details
To check the roll details, follow the next procedure.
- Click All services > Container > Kubernetes Engine menu. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click 롤 under the 권한 menu. It moves to the 롤 목록 page.
- On the Roll List page, select the cluster and namespace from the Gear button at the top left, then click OK.
- Role List page, select the item you want to check the detailed information. Move to the Role Detail page.
- Selecting System Object View at the top of the list displays all items except Kubernetes object entries.
- Click each tab to check the service information.
| Classification | Detailed Description |
|---|---|
| Role Delete | to delete a role |
| Detailed Information | Check the detailed information of the roll |
| YAML | You can modify the role’s resource file in the YAML editor
|
| Event | Check the event that occurred in the roll |
| Account Information | Account name, location, creation time, etc., basic information about the Account can be checked |
| Metadata Information | Check the metadata information of the roll |
| Policy Rule Information | Check the policy rule information of the role
|
Delete Role
To delete a role, follow these steps.
- Click All services > Container > Kubernetes Engine menu. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click 롤 under the 권한 menu. It moves to the 롤 목록 page.
- On the Roll List page, select the cluster and namespace from the gear button at the top left, then click OK.
- Select the item you want to delete from the Role List page. It moves to the Role Detail page.
- Role Details page, click Delete Role.
- When the Notification Confirmation Window appears, click the Confirm button.
Managing Roll Binding
You can create and manage role bindings by linking roles to specific targets.
Creating Roll Binding
To create a role binding, follow these steps.
- Click All services > Container > Kubernetes Engine menu. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click 롤바인딩 under the 권한 menu. It moves to the 롤바인딩 목록 page.
- Role Binding List page, select the cluster and namespace from the gear button at the top left, then click Create Object.
- Object Creation Popup에서 오브젝트 정보를 입력하고 확인 버튼을 클릭하세요.
Check Roll Binding Details
To check the details of the roll binding, follow the next procedure.
- Click all services > Container > Kubernetes Engine menu. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click 롤바인딩 under the 권한 menu. It moves to the 롤바인딩 목록 page.
- On the 롤바인딩 목록 page, select the cluster and namespace from the 톱니바퀴 button at the top left, then click 확인.
- On the Roll Binding List page, select the item you want to check the detailed information. It moves to the Roll Binding Details page.
- Selecting Show System Objects at the top of the list displays all items except Kubernetes object entries.
- Click each tab to check the service information.
| Classification | Detailed Description |
|---|---|
| Roll Binding Delete | Delete roll binding |
| Detailed Information | Check the detailed information of roll binding |
| YAML | Rollbinding’s resource file can be modified in YAML editor
|
| Event | Check the event that occurred within the roll binding |
| Account Information | Account name, location, creation time, etc., basic information about the Account can be checked |
| Metadata Information | Check the metadata information of Roll Binding |
| Roll/Target Information | Check the roll’s role and target information |
Deleting Roll Binding
To delete a role binding, follow these steps.
- Click all services > Container > Kubernetes Engine menu. It moves to the Service Home page of Kubernetes Engine.
- On the Service Home page, click 롤바인딩 under the 권한 menu. It moves to the 롤바인딩 목록 page.
- Rollbinding List page, select the cluster and namespace from the gear button at the top left, then click OK.
- Select the item to delete from the Roll Binding List page. It moves to the Roll Binding Details page.
- On the Roll Binding Details page, click Delete Roll Binding.
- When the Notification Confirmation Window appears, click the OK button.