Not able to run oc adm top pod from non cluster-admin user.
Issue
- The command
oc adm top podsis not displaying the memory resources. - The user is not a
cluster-adminbut aproject-adminof the application namespace. - The below error is observed when trying to view the
topoutput forpods.
W0514 <time> 26453 top_pod.go:192] Metrics not available for pod <pod-name>, age: 1234
error: Metrics not available for pod <pod-name>, age: 1234
Environment
- Redhat Openshift Container Platform (OCP)
- 3.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
