Logging in to OCP cluster as kubeadmin

Procedure
  1. View the password for kubeadmin using the following command:
    cat /var/nps/ISO/ign_config/auth/kubeadmin-password

    The output has the password. Copy this password securely for further use.

  2. Log in to the CLI using the oc login command:
    oc login -u kubeadmin -p <kubeadmin_password>

    User can starting using oc commands once logged into the cluster.

  3. Access the OpenShift web console.
    [root@npsvm ign_config]# openshift-install wait-for install-complete --dir=/var/nps/ISO/ign_config/ --log-level debug
    DEBUG OpenShift Installer 4.3.29
    DEBUG Built from commit 96253d3f2ed8da6f70ff6ad9f69d67b65c688889
    DEBUG Fetching Install Config...
    DEBUG Loading Install Config...
    DEBUG Loading SSH Key...
    DEBUG Loading Base Domain...
    DEBUG Loading Platform...
    DEBUG Loading Cluster Name...
    DEBUG Loading Base Domain...
    DEBUG Loading Platform...
    DEBUG Loading Pull Secret...
    DEBUG Loading Platform...
    DEBUG Using Install Config loaded from state file
    DEBUG Reusing previously-fetched Install Config
    INFO Waiting up to 30m0s for the cluster at https://api.c10.qa.com:6443 to initialize...
    DEBUG Cluster is initialized
    INFO Waiting up to 10m0s for the openshift-console route to be created...
    DEBUG Route found in openshift-console namespace: console
    DEBUG Route found in openshift-console namespace: downloads
    DEBUG OpenShift console route is created
    INFO Install complete!
    INFO To access the cluster as the system:admin user when using 'oc', run 'export KUBECONFIG=/var/nps/ISO/ign_config/auth/kubeconfig'
    INFO Access the OpenShift web-console here: https://console-openshift-console.apps.c10.qa.com
    INFO Login to the console with user: kubeadmin, password: <kubeadmin_password>

    User can login to the console using the web console URL and login credentials.