Cluster roles for Kubeturbo
A cluster role specifies the permissions and privileges that are required to perform the following operations.
| Operation | Supported role |
|---|---|
| Deploy Kubeturbo |
To deploy Kubeturbo to a cluster, you must have the
|
| Monitor and optimize workloads in your cluster |
The role that you choose for Kubeturbo determines its level of access
to your cluster.
By default, Kubeturbo deploys to
your cluster with the cluster-admin role. This role has full control over
every resource in the cluster.
If you prefer a custom role, you must explicitly set that role when you deploy
Kubeturbo. The following custom roles are supported:
|
Turbonomic cluster admin custom role
| apiGroups | Resources | Verbs | Description |
|---|---|---|---|
“”
|
pods
|
"*" |
Needed to take automated actions on all pods and jobs. |
“”
|
deployments
|
get
|
Needed to take automated resize actions on all resources in the list. |
“”
|
nodes
|
get
|
Needed to discover all resources in the list. |
machine.openshift.io |
machines
|
get
|
Needed in Red Hat OpenShift to automate node provision and suspend actions using
machinesets. |
“” |
nodes/spec
|
get |
Needed to discover all resources in the list. |
security.openshift.io |
securitycontextconstraints |
list
|
Needed in Red Hat OpenShift to use Security Context Constraint (SCC) for automated actions. |
“” |
serviceaccounts |
create
|
For Red Hat OpenShift, Kubeturbo creates a temporary service account that is bound
to the required SCC, impersonates that account so the admission controller evaluates the
actions with the correct privileges, and then deletes the account when the action is
executed. For Kubernetes, SCC admission is not enforced. Verbs are normally unused
so you can remove them. The |
rbac.authorization.k8s.io |
roles
|
create
|
Needed to create the required resources in the cluster to automate actions. Kubeturbo automatically creates such resources based on the role and updates them over time as needed. |
“” |
secrets |
get
|
Needed for Kubeturbo to read the secret that stores the details on how to connect to Turbonomic. |
Turbonomic cluster reader custom role
| apiGroups | Resources | Verbs | Description |
|---|---|---|---|
“”
|
nodes
|
get
|
Discovers and reads all resources |
machine.openshift.io |
machines
|
|
Discovers and reads all machinesets in Red Hat OpenShift |
“” |
nodes/spec
nodes/stats
nodes/metrics
nodes/proxy
|
get |
Discovers and reads all details for nodes |