2. Configure Access To Cluster

2.1. Overview

This guidelines is about configuring the access to the cluster.

2.2. Login to IBM Cloud

2.2.1. Login to IBM Cloud by providing credentials on this URL from the browser

The credentials would have already been provided by the lab facilitator.

https://cloud.ibm.com/login
1
2.2.2. Open Cluster's Console

From top accounts, Select Stakater AB Account

Account

At the home page (opens new window) you can see the available Clusters.

Clusters

Click on Clusters, and you will be able to see available Openshift clusters on your account. Its name will be like bootcamp.

Cluster Name

Click on it,and in the next page click on Openshift Web console

Console

and it will take you to the cluster's console.

2.3. Configuring Access to Cluster

2.3.1. Login to the cluster dashboard using the username and password provided.

2.3.1.1. Once logged in use the dropdown menu to get the oc login command

login

2.3.1.2. It will redirect you to another page

display-token

2.3.1.3. Copy the command provided in "Log in with this token" section

display-token

2.4. Access the IBM Cloud Shell

NOTE

Use IBM Cloud Shell to run all commands described in the bootcamp

2.4.1. Access the IBM Cloud Shell from the IBM Cloud, by clicking the `IBM Cloud Shell` command button, see the following image,the one highlighted with red square

Shell Button

2.4.2. A CLI Shell will be opened like the following in a new tab

IBM Shell

Make sure you have Frankfurt as region & Account is Stakater AB IBM Shell

2.4.3. Paste the command copied in step 2.3.1.3

This command will copy the cluster config in ~/.kube/config file.

2.4.4. Verify the configuration
kubectl get nodes
1

It will show cluster nodes