# Pre-Requesites Lab 2

## Overview

An IBM Cloud account is needed: [ ](< http://ibm.biz/wwcode-sf-202003>)[**http://cloud.ibm.com**](https://cloud.ibm.com/registration?cm_mmc=Email_Events-_-Developer_Innovation-_-WW_WW-_-accountname:kaiserpermanente;accounttype:integrated;projecttype:workshop;geo:na\&cm_mmca1=000019RS\&cm_mmca2=10004805\&cm_mmca3=M99938765\&engagementId=5e7bd7d15484aaf21bb0ea7c\&cvosrc=email.Events.M99938765\&cvo_campaign=000019RS)

We will use preconfigured OpenShift on IBM Cloud clusters in this hands-on workshop. See the previous page. You should have received information from your lab instructor to get access to one of these clusters.

## 1. Work Environment

In your browser, login to the [IBM Cloud](https://cloud.ibm.com/) Dashboard

1. Make sure you select **your own account** in the account list, then click on the IBM Cloud Shell Icon

![](/files/-M0YUhWyRJiWwwjD4_W9)

{% hint style="info" %}
Note: Cloud Shell includes 500 MB of temporary storage. Your session closes after 30 minutes of inactivity. If you’re inactive in Cloud Shell for over an hour, your workspace data is removed. It’s also removed if you reach the 4-hour continuous usage or 30-hour weekly usage limits. To track your usage, go to Usage quota in the Cloud Shell menu (3 vertical dots in the upper right corner).
{% endhint %}

![](/files/-M0YV1MI27y6zBP3TXEJ)

## 2. Get the code

In the IBM Cloud Shell execute the following commands:

```
$ git clone https://github.com/Harald-U/openshift43-on-ibm-cloud-workshop.git
$ cd workshop-openshift-on-ibm-cloud
$ ROOT_FOLDER=$(pwd)
```

## 3. Get Access to OpenShift on the IBM Cloud

### a. Open the OpenShift console.

1. Go back to the IBM Cloud Dashboard ([https://cloud.ibm.com](https://cloud.ibm.com/)).
2. Switch from your own account to the IBM account given to you by the instructor from the pulldown in the uper right corner.
3. Select **OpenShift** in the 'burger' menu

![](/files/-M0YZG0ThnTjCjhnEGlY)

Chose **Clusters** and click on your **OpenShift cluster**

![](/files/-M0YZRT7ohecF68AEvcV)

Open the **OpenShift web console**

![](/files/-M0YZXM81LkHINbVh5gI)

### b. Get the access token for the 'oc' CLI.

1. From the dropdown menu in the upper right of the page, click 'Copy Login Command'.

![](/files/-M0YZiE5q68hf-Z0B23X)

Click on 'Display Token', then copy and paste the command 'Log in with this token' into your terminal in the IBM Cloud Shell.

![](/files/-M0YZmtge5w-CFXUnV80)

Login to OpenShift in IBM Cloud Shell

```
$ oc login https://c1XX-XX-X.containers.cloud.ibm.com:XXXXX --token=xxxxxx'
```

![](/files/-M0Y_-M70Pft0q3_A8HR)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ibmdevelopersf.gitbook.io/red-hat-worldtour/pre-requesits-lab-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
