Not able to run oc adm top pod from non cluster-admin user.

Solution Verified - Updated -

Issue

  • The command oc adm top pods is not displaying the memory resources.
  • The user is not a cluster-admin but a project-admin of the application namespace.
  • The below error is observed when trying to view the top output for pods.
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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content