This is a cache of https://docs.openshift.com/rosa/cloud_experts_tutorials/cloud-experts-getting-started/cloud-experts-getting-started-accessing.html. It is a snapshot of the page at 2024-11-25T03:03:04.110+0000.
Accessing your cluster - Getting started with ROSA | Tutorials | Red Hat OpenShift Service on AWS
×

You can connect to your cluster using the command line interface (cli) or the Red Hat Hybrid Cloud Console user interface (UI).

Accessing your cluster using the cli

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.

  1. Log in to the OpenShift Cluster Manager.

  2. click your username in the top right corner.

  3. click Copy Login Command.

    cloud experts getting started accessing copy login
  4. This opens a new tab with a choice of identity providers (IDPs). click the IDP you want to use. For example, "rosa-github".

    cloud experts getting started accessing copy token
  5. A new tab opens. click Display token.

  6. Run the following command in your terminal:

    $ oc login --token=sha256~GBAfS4JQ0t1UTKYHbWAK6OUWGUkdMGz000000000000 --server=https://api.my-rosa-cluster.abcd.p1.openshiftapps.com:6443
    Example output
    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".
  7. Confirm that you are logged in by running the following command:

    $ oc whoami
    Example output
    rosa-user
  8. You can now access your cluster.

Accessing the cluster via the Hybrid Cloud Console

  1. Log in to the OpenShift Cluster Manager.

    1. To retrieve the Hybrid Cloud Console URL run:

      rosa describe cluster -c <cluster-name> | grep Console
  2. click your IDP. For example, "rosa-github".

    cloud experts getting started accessing copy token
  3. Enter your user credentials.

  4. 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.

    cloud experts getting started accessing logged