You can connect to your cluster using the command line interface (cli) or the Red Hat Hybrid Cloud Console user interface (UI).
To access the cluster using the cli, you must have the oc
cli installed. If you are following the tutorials, you already installed the oc
cli.
Log in to the OpenShift Cluster Manager.
click your username in the top right corner.
click Copy Login Command.
This opens a new tab with a choice of identity providers (IDPs). click the IDP you want to use. For example, "rosa-github".
A new tab opens. click Display token.
Run the following command in your terminal:
$ oc login --token=sha256~GBAfS4JQ0t1UTKYHbWAK6OUWGUkdMGz000000000000 --server=https://api.my-rosa-cluster.abcd.p1.openshiftapps.com:6443
Logged into "https://api.my-rosa-cluster.abcd.p1.openshiftapps.com:6443" as "rosa-user" using the token provided.
You have access to 79 projects, the list has been suppressed. You can list all projects with ' projects'
Using project "default".
Confirm that you are logged in by running the following command:
$ oc whoami
rosa-user
You can now access your cluster.
Log in to the OpenShift Cluster Manager.
To retrieve the Hybrid Cloud Console URL run:
rosa describe cluster -c <cluster-name> | grep Console
click your IDP. For example, "rosa-github".
Enter your user credentials.
You should be logged in. If you are following the tutorials, you will be a cluster-admin and should see the Hybrid Cloud Console webpage with the Administrator panel visible.