Facing issue when running oc commands in Openshift

Solution Verified - Updated -

Issue

  • When running oc commands(oc get pod,oc get node, oc get project) below error is seen :
Error from server: User "system:anonymous" cannot list pods in project "x"
  • Why I am getting error when runing oc commands.
  • Not able to execute any oc commands. It gives below error :
Error from server: User "system:anonymous" cannot list all nodes in the cluster

Environment

  • Openshift Enterprise
    • 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