ElasticSearch unable to start with error "cannot create tokenreviews.authentication.k8s.io at the cluster scope"

Solution Verified - Updated -

Issue

The ElasticSearch pod fail to start because of the following error:

unable to load OpenShift configuration: unable to retrieve authentication information for tokens: User "system:serviceaccount:logging:aggregated-logging-elasticsearch" cannot create tokenreviews.authentication.k8s.io at the cluster scope: User "system:serviceaccount:logging:aggregated-logging-elasticsearch" cannot create tokenreviews.authentication.k8s.io at the cluster scope (post tokenreviews.authentication.k8s.io)

Environment

Openshift Container Platform 3.7 and above

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