1. grant normal user metrics reader role
# cat metrics-reader-cluster-role.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: metrics-reader
rules:
- apiGroups:
- ''
resources:
- namespaces
verbs:
- get
- list
- watch
# oc create -f metrics-reader-cluster-role.yaml
clusterrole.rbac.authorization.k8s.io/metrics-reader created
# oc adm policy add-cluster-role-to-user metrics-reader yapei1
clusterrole.rbac.authorization.k8s.io/metrics-reader added: "yapei1"
2. Normal user 'yapei1' login to the cluster and visit Monitoring, user can see Dashboards menu, also user can view dashboards successfully
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2020:0581