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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In