i tried EX180 exam and experience an unseen error on very simply step which was to login oc cluster ; i used the commands " oc login -u username -p password Master_api" provided in the instruction sheet however it keeps on giving error .
error: Missing or incomplete configuration info. Please point to an existing, complete config file: 1. Via the command-line flag --kubeconfig 2. Via the KUBECONFIG environment variable 3. In your home directory as ~/.kube/config
i tried to log in using the credentials provided in test test instruction first page , i tried to ping the examiner he said all is fine , follow exam ,..i tried multiple times. i tried to look for /.kube/config in user home directory it was not there with "ls -al" command , so any idea , any one experience same issue how he fixed? or is there any other username password provided part of task? , pls urgent reply since i have to try again and it is my biggest fear now that same will occur.
While using the "copy login command" feature of the web console may be required for OpenShift clusters that require SSO or multi-factor authentication, it should not be required in the classroom and exam setups. The error in the beggining if this thread suggests that the Linux user cannot create a ~/.kube/config file, or that the file is corrupted.
Are you using an unprivileged Linux user that as access to its $HOME folder? Does that user has access to an existing ~/.kube folder?
If you do, oc login would crate the file (and the ~/.kube folder if it does not exist). But it is too easy to make that file or folder inaccessible, for example by doing an oc login using sudo and later without sudo, so you create the file and folder owned by root and later oc commands, without sudo, have no access fo the folder.