oc command failing for random pods

Solution Verified - Updated -

Issue

  • oc logs/oc exec commands failing with following error for random pods in the OCP cluster:
error: You must be logged in to the server (the server has asked for the client to provide credentials)
  • Unable to view logs of some application pods.

Environment

  • OpenShift Container Platform [OCP]
    • v3.11

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