cloudpakforapplications-appmod
workshop-06-02-2020
workshop-06-02-2020
  • Introduction
  • Day 1 Labs
    • Lab: Kubernetes and Operators
      • Excercise - 0a
      • Excercise - 0b
      • Excercise - 1
      • Excercise - 2
      • Excercise - 3
      • Excercise - 4
      • Excercise - 5
    • helm101
      • Lab 0
      • Lab 1
      • Lab 2
      • Lab 3
      • Lab 4
    • Lab - Explore Transformation Advisor
  • Day 2 Labs
    • Lab - Source to Image
    • Tekton Lab
      • Setup
      • Lab - Tekton Pipelines
  • Resources
    • IBM Developer
Powered by GitBook
On this page
  • 1. Access the Cloud Shell
  • 2. Log into OpenShift
  • 3. Install Tekton CLI

Was this helpful?

  1. Day 2 Labs
  2. Tekton Lab

Setup

PreviousTekton LabNextLab - Tekton Pipelines

Last updated 4 years ago

Was this helpful?

This section is broken up into the following steps:

1. Access the Cloud Shell

From the , select the terminal icon in the upper lefthand menu.

2. Log into OpenShift

Optionally, if you would like to use OpenShift for this lab, then you will need to authenticate with the OpenShift console before continuing.

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

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

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

IBM Cloud Home Page
IBM Cloud Home Page
Access the Cloud Shell
Log into OpenShift
Install Tekton CLI
Terminal Button
correct account
Kubernetes Menu
cluster homepage
copy login command