Updating the Kubeturbo role through YAML
Update the role if you deployed Kubeturbo with a specific role and
now want to use a different role. For example, you may want to change the role from
turbo-cluster-reader
to turbo-cluster-admin
to execute
actions in Turbonomic.
-
Delete the Cluster Role Binding (CRB) that starts with the naming convention
turbo-all-binding-kubeturbo
.For example, to delete
turbo-all-binding-kubeturbo-turbo
, run the following command:kubectl delete clusterrolebinding turbo-all-binding-kubeturbo-turbo
-
Create a new role for Kubeturbo.
-
To use the
turbo-cluster-admin
role, run the following command.kubectl apply -f https://raw.githubusercontent.com/turbonomic/kubeturbo-deploy/master/deploy/kubeturbo_yamls/turbo-admin.yaml
-
To use the
turbo-cluster-reader
role, run the following command.kubectl apply -f https://raw.githubusercontent.com/turbonomic/kubeturbo-deploy/master/deploy/kubeturbo_yamls/turbo-reader.yaml
Note:For the default
cluster-admin
role, there is no YAML resource to apply. Kubeturbo will automatically switch to this role after you apply the corresponding CRB (see the next step). -
-
Create a new CRB for Kubeturbo.
-
To use the
turbo-cluster-admin
CRB, run the following command.kubectl apply -f https://raw.githubusercontent.com/turbonomic/kubeturbo-deploy/master/deploy/kubeturbo_yamls/step3_turbo_serviceAccountRoleBinding_turbo-cluster-admin_sample.yaml
-
To use the
turbo-cluster-reader
role, run the following command.kubectl apply -f https://raw.githubusercontent.com/turbonomic/kubeturbo-deploy/master/deploy/kubeturbo_yamls/step3_turbo_serviceAccountRoleBinding_turbo-cluster-reader_sample.yaml
-
To use the
cluster-admin
CRB, run the following command.kubectl apply -f https://raw.githubusercontent.com/turbonomic/kubeturbo-deploy/master/deploy/kubeturbo_yamls/step3_turbo_serviceAccountRoleBinding_admin_sample.yaml
-
-
Delete the Kubeturbo pod.
-
Get a list of pods.
kubectl get pods -n turbo
-
Find the Kubeturbo pod. The following example shows a Kubeturbo pod named
kubeturbo-asdf1234asd3
.NAME READY STATUS RESTARTS AGE kubeturbo-asdf1234asd3 1/1 Running 0 37m
-
Delete the Kubeturbo pod.
kubectl delete pod kubeturbo-{kubeturbo_pod_ID} -n turbo
For example:
kubectl delete pod kubeturbo-asdf1234asd3 -n turbo
-