oc logout is not working when logged in with system:admin

Solution Verified - Updated -

Issue

  • How to get logged out from system:admin?
  • While trying to get logged out from system:admin getting an error.
# oc whoami
system:admin

# oc logout
error: You must have a token in order to logout.
  • While trying to run the command getting an error.
# oc login -u system:admin
Logged in as "system:admin" using existing credentials.

# oc whoami -t
error: no token is currently in use for this session

Environment

  • Red Hat OpenShift Container Platform 3.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