How to solve playbooks installation/upgrade issues when kubeconfig gets corrupted

Solution Verified - Updated -

Issue

Installation/upgrade playbooks of OCP cluster or some of the infrastructure components fails with:

"stderr": "error: unable to process template\n  User \"system:anonymous\" cannot create processedtemplates.template.openshift.io in the namespace \"default\": User \"system:anonymous\" cannot create processedtemplates.template.openshift.io in project \"default\"\nerror: no objects passed to apply", 
    "stderr_lines": [
        "error: unable to process template", 
        "  User \"system:anonymous\" cannot create processedtemplates.template.openshift.io in the namespace \"default\": User \"system:anonymous\" cannot create processedtemplates.template.openshift.io in project \"default\"", 
        "error: no objects passed to apply"

Environment

OpenShift Container Platform 3.7

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