Setup

This section is broken up into the following steps:

1. Log into OpenShift

You will need to authenticate with the OpenShift console before continuing.

From the IBM Cloud Home Page, make sure you are in the IBM Cloud account where your cluster is located. Select from the dropdown menu in the upper right.

Next, find your clusters by navigating to Kubernetes->Clusters in the upper lefthand menu

Select your cluster to get to the cluster home page. Then, select the OpenShift Web Console Button

From the OpenShift console, in the upper righthand menu, select Copy Login Command

Follow the instructions including logging in using your IBM ID to get the command to login. Run the command in your IBM Cloud Shell environment

oc login --token=... --server=...

2. Install Tekton CLI

Run the commands below to install tkn the Tekton CLI that we will be using in this lab

curl -LO https://github.com/tektoncd/cli/releases/download/v0.9.0/tkn_0.9.0_Linux_x86_64.tar.gz
mkdir ~/tknbin
tar xvzf tkn_0.9.0_Linux_x86_64.tar.gz -C ~/tknbin tkn
echo 'export PATH=$HOME/tknbin:$PATH' > .bash_profile
source .bash_profile
tkn version

Last updated