- Login to
rancher UI
---> select≡
icon. - Select
Users & Authentication
--->Roles
--->Cluster
. - Click on
Create Cluster Role
to create a new role for clusters. - Provide a unique role name
Name
. - Set
Cluster Creator Default
toNo
and SetLocked
toNo
. - Select the
Grant Resources
option ---> click onAdd Resource
.- Select a set of operations from the
verbs
section to allow a role to perform the operations on the resource. - Select
Resource
andAPI Groups
.
- Select a set of operations from the
- If you want to inherit existing roles, Select
Inherit From
option ---> click onAdd Resource
to add a new resource ---> Select Role.
viewAllDeletePod
role: view all resources and delete only pod.
-
Login to
rancher UI
---> select≡
icon. -
Select
Users & Authentication
--->Roles
--->Cluster
. -
Click on
Create Cluster Role
to create a new role for clusters. -
Provide a unique role name
viewAllDeletePod
. -
Set
Cluster Creator Default
toNo
and SetLocked
toNo
. -
Select the
Grant Resources
option ---> click onAdd Resource
.-
Select below mentioned
verbs
,resources
, andAPI Groups
.Verbs Resource Non-Resource URLs API Groups get, list, watch * delete pods get, list, watch * networking.istio.io get, list, watch * security.istio.io
-
-
Inherit below mentioned roles, Select
Inherit From
option ---> click onAdd Resource
to add a new resource ---> Select Role.View Ingress View Monitoring View Volumes View Nodes View Services View Config Maps View Secrets View Service Accounts View Cluster Catalogs