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 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.