Red Hat OpenShift WorldTour
  • Red Hat OpenShift Workshop
  • Accessing IBM Cloud - the Free Lite Account
  • Lab 1 - Start with a Docker Image
  • Command Line Interface - Using the CLI in a Terminal
  • Claiming Your Red Hat OpenShift Cluster for This Workshop
  • Pre-Requesites Lab 2
  • Lab 2 - Using an existing image to create a project
  • Lab 3 - stretch goal
  • Lab 3 with LogDNA
  • Next Steps
    • IBM/minishift101 - step 1 - accessing cluster
    • IBM/minishift101 - step 2 - creating an app from source
    • IBM/minishift101 - step 3
    • IBM/minishift101 - step 4 networking
  • How Did You Like This Workshop?
  • FAQ
    • Lab 2 v 3.x - Using an existing image to create a project
    • Lab 3 - Deploying a Project to Red Hat OpenShift Kubernetes Cluster
      • Lab 3 - setting up
      • Lab 3 - instructions on creating an OpenShift project
Powered by GitBook
On this page
  • Overview
  • 1. Work Environment
  • 2. Get the code
  • 3. Get Access to OpenShift on the IBM Cloud
  • a. Open the OpenShift console.
  • b. Get the access token for the 'oc' CLI.

Was this helpful?

Pre-Requesites Lab 2

PreviousClaiming Your Red Hat OpenShift Cluster for This WorkshopNextLab 2 - Using an existing image to create a project

Last updated 4 years ago

Was this helpful?

Overview

An IBM Cloud account is needed:

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 Dashboard

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

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

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. Switch from your own account to the IBM account given to you by the instructor from the pulldown in the uper right corner.

  2. Select OpenShift in the 'burger' menu

Chose Clusters and click on your OpenShift cluster

Open the OpenShift web console

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

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

Login to OpenShift in IBM Cloud Shell

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

Go back to the IBM Cloud Dashboard ().

https://cloud.ibm.com
http://cloud.ibm.com
IBM Cloud