Error getting pod logs: Forbidden

Solution Verified - Updated -

Issue

The command "oc get logs" from any pod is showing an error of this sort:

Error from server: Get https://172.30.0.10:10250/containerLogs/testname/pod-1-zcqd7/name: Forbidden

Environment

Red Hat Openshift Container Platform 4.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