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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.