As outlined in this issue, you may run into a problem where you want to log into the OpenShift cluster as system:admin from one of your master nodes but it keeps asking for credentials.

$ oc login -u system:admin
Authentication required for https://localhost:8443 (openshift)
Username: system:admin

There are probably several solutions to tackle this. The one that worked for me is:

$ export KUBECONFIG=/etc/origin/master/admin.kubeconfig
$ oc login -u system:admin

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.