cloudpakforapplications-appmod
workshop-07-28-2020
workshop-07-28-2020
  • Introduction
  • Setup
    • Cloud Shell Setup Instructions
    • Access IBM Skills Network
  • Day 1
    • Lab: Kubernetes 101
      • Excercise - 1
      • Excercise - 2
      • Excercise - 3
    • Lab: Helm 101
      • Setup Helm
      • Lab 1 - Deploy Application
      • Lab 2 - Update Application
      • Lab 3 - Revisions
      • Lab 4 - Helm Repositories
    • Lab: Kubernetes Extensions
  • Day 2
    • Lab - S2I Open Liberty
    • Lab - CI/CD Pipeline with Jenkins on OpenShift
      • Lab 1 - Deploy application to OpenShift via s2i
      • Lab 2 - Deploy application to OpenShift via CI/CD Pipeline with Jenkins
  • Resources
    • IBM Developer
Powered by GitBook
On this page
  • 1. Access IBM Skills Network
  • 2. Connect to OpenShift Cluster
  • 3. Install s2i CLI tool

Was this helpful?

  1. Setup

Access IBM Skills Network

PreviousCloud Shell Setup InstructionsNextLab: Kubernetes 101

Last updated 4 years ago

Was this helpful?

1. Access IBM Skills Network

  1. If you have registered your account, you can access the lab environment at and go directly to step 6.

  2. Navigate to ,

  3. Create a new account with a Social login (LinkedIn, Google, Github or Facebook), or click the Cognitive Class button,

  4. Click Create an Account,

  5. Fill in your Email, Full Name, Public Username and password, click on the check boxes next to the Privacy Notice and Terms of Service to accept them. Then click on Create Account.

  6. You will then be taken to a page with a list of sandbox environments. Click on the option for Theia - Cloud IDE (With OpenShift)

  7. Wait a few minutes while your environment is created.

  8. You will be taken to a blank editor page once your environment is ready.

  9. What we really need is access to the terminal. Click on the Terminal tab near the top of the page and select New Terminal

  10. You can then click and drag the top of the terminal section upwards to make the terminal section bigger.

2. Connect to OpenShift Cluster

  1. Select your cluster instance and open it.

  2. Click OpenShift web console button on the top.

  3. Click on your username in the upper right and select Copy Login Command option.

  4. Click the Display Token link.

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

  6. Go to the Cloud Shell tab.

  7. Paste the oc login command in the IBM Cloud Shell terminal and run it.

  8. After login to your cluster, set an environment variable for your cluster.

    export CLUSTER_NAME=<your_cluster_name>
  9. Verify you connect to the right cluster.

    kubectl get pod

3. Install s2i CLI tool

To install s2i CLI tool,

  1. Download tar file.

     curl -s https://api.github.com/repos/openshift/source-to-image/releases/latest \
       | grep browser_download_url \
       | grep linux-amd64 \
       | cut -d '"' -f 4 \
       | wget -qi -
  2. Unzip tar file

     tar xvf source-to-image*.gz
  3. Make s2i CLI accessiblee.

     sudo mv s2i /usr/local/bin
  4. verify

     s2i version

With that done, you can start the lab.

In a new browser tab, go to .

https://cloud.ibm.com/kubernetes/clusters?platformType=openshift
https://labs.cognitiveclass.ai/
https://labs.cognitiveclass.ai/register
Cognitive Class button
New Terminal
sandbox list
bigger terminal
Cognitive Class button
waiting
Terminal Button