Setting PVC viewing permissions
To monitor storage resources, verify that you have the necessary privileges to view Persistent Volume Claim (PVC) usage statistics. Ensuring you have the correct permissions means that you can access usage data and track resource consumption effectively.
To view PVC usage statistics, you must have the necessary privileges.
-
If you have admin privileges, log on to MicroShift as an
admin. -
If you do not have admin privileges, complete the following steps:
-
Create cluster roles for the user by running the following command:
$ oc create clusterrole routes-view --verb=get,list --resource=routes -
Add the
routes-viewcluster role for the user by running the following command:$ oc admin policy add-cluster-role-to-user routes-view _<user_name>_ -
Replace
<user_name>with the user name. -
Add the
cluster-monitoring-viewcluster role for the user by running the following command:$ oc admin policy add-cluster-role-to-user cluster-monitoring-view _<user_name>_ -
Replace
<user_name>with the user name.
-