Skip to content

Instantly share code, notes, and snippets.

@timroster
Last active November 13, 2021 11:37
Show Gist options
  • Save timroster/cfa55fc4c87b1c030f195ef741ff3ac3 to your computer and use it in GitHub Desktop.
Save timroster/cfa55fc4c87b1c030f195ef741ff3ac3 to your computer and use it in GitHub Desktop.

Kubernetes Introduction using the IBM Cloud Shell

To begin this hands on lab, you will need to log in to the IBM Cloud Workshop shell and also connect to an OpenShift Cluster. If you received an inviation to an IBM Cloud account by e-mail, please click on the invitation link and set the password for your IBMid before proceeding.

  1. Open IBM Cloud Shell

  2. If the Login text appears in the upper right, sign in using your IBMid, otherwise continue.

  3. Check that the right cloud account is selected in the upper right and click on the terminal icon to open the Cloud Shell

  4. In another browser tab, open the IBM Cloud Console. Check the account number to match what the instructor has provided and then click to expand the cluster list.

    Expand Clusters

  5. Open the Red Hat OpenShift service panel by clicking on the name of your cluster:

    Open cluster service panel

  6. After the service panel opens, click on the OpenShift web console button to open the OpenShift web dashboard

  7. Click in the upper right id pulldown and select Copy Login Command

    Copy login command

  8. Paste the command into the Cloud Shell, if successful, you will see a list of projects which you can access in the cluster (your list may be different).

    OC login complete

  9. In the Cloud Shell, create a project for the lab. Each user of the cluster should have their own, unique project. To make this simple, use your assigned STUDENT ID from the class roster, for example with user012 the command would be:

    $ oc new-project user012
    Now using project "user012" on server "https://c100-e.us-east.containers.cloud.ibm.com:32434".
    ...
  10. Set a shell environment variable to the cluster name for this workshop:

    $ export MYCLUSTER=bcbsma-appmod

Proceed to the workshop steps

Begin with Lab 1 from Kube 101. Continue on with labs 2 and 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment