IBM Support

Resolving the Error "Failed to load kubeconfig due to Invalid kube-config file" While Using the MAS CLI Tool

Troubleshooting


Problem

When running a command in the IBM MAS CLI tool, the following error message is met:
 
Failed to load kubeconfig due to Invalid kube-config file. No configuration found.
 

Cause

The environment where the MAS CLI tool is running is not logged on to OpenShift.

Resolving The Problem

Ensure that you have logged in to your required OpenShift Cluster as guided in Step 3 of this document;   https://www.ibm.com/support/pages/node/7001353
Reference Material:
Instructions on logging in to the OpenShift CLI is found in the Red Hat OpenShift documentation "Logging in to the OpenShift CLI".

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSRHPA","label":"IBM Maximo Application Suite"},"ARM Category":[{"code":"a8m50000000CbKNAA0","label":"Install"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Document Information

Modified date:
07 May 2024

UID

ibm17148159