Cloud Shell Setup Instructions
Last updated
Last updated
This section will guide you through the pre-requisites and setup of the environment used in this workshop labs. It is broken up into the following steps:
You will need an IBM Cloud ID for the workshop. If you already have an IBM Cloud ID, proceed to the next section. To create an ID:
Follow the steps outlined in NEWACCOUNT.
To login to IBM Cloud,
Go to https://cloud.ibm.com in your browser and login.
Make sure that you are in the correct account#.
Note: you may not have access to your OpenShift cluster if you are not in the right account#.
Most of the labs will run CLI commands. The IBM Cloud Shell is preconfigured with the full IBM Cloud CLI and tons of plug-ins and tools that you can use to manage apps, resources, and infrastructure.
From the IBM Cloud Home Page, select the terminal icon in the upper right hand menu.
It might take a few moments to create the instance and a new session which automatically logs you in through the IBM Cloud CLI.
Note: Ensure the cloud shell is using the same account where your cluster is provisioned. Check that the account name shown in the top right of the screen, next to
Current account
is the correct one.
In a new browser tab, go to https://cloud.ibm.com/kubernetes/clusters?platformType=openshift.
Select your cluster instance and open it.
Click OpenShift web console
button on the top.
Click on your username in the upper right and select Copy Login Command
option.
Click the Display Token
link.
Copy the contents of the field Log in with this token
to the clipboard. It provides a login command with a valid token for your username.
Go to the Cloud Shell
tab.
Paste the oc login command
in the IBM Cloud Shell terminal and run it.
After login to your cluster, set an environment variable for your cluster.
Verify you connect to the right cluster.