# Setup

This section is broken up into the following steps:

1. [Log into OpenShift](/cloudpakforapplications-appmod/workshop-07-07-2020/day-3/tekton-lab/tekton-setup.md#2-log-into-openshift)
2. [Install Tekton CLI](/cloudpakforapplications-appmod/workshop-07-07-2020/day-3/tekton-lab/tekton-setup.md#3-install-tekton-cli)

## 1. Log into OpenShift

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

From the [IBM Cloud Home Page](https://cloud.ibm.com), make sure you are in the IBM Cloud account where your cluster is located. Select from the dropdown menu in the upper right.

![correct account](/files/-M8mXMZ0sbJzQEy89BoN)

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

![Kubernetes Menu](/files/-M8mXMZ1hof98kjL7AkD)

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

![cluster homepage](/files/-M8mXMZ2gl5zIXBTt7tI)

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

![copy login command](/files/-M8mXMZ3iuk7FrreP6o4)

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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ibm-developer.gitbook.io/cloudpakforapplications-appmod/workshop-07-07-2020/day-3/tekton-lab/tekton-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
