step1.md 1.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
In this section, we will install and expose the Tekton Dashboard.

## Katacoda Kubernetes Cluster

It might take a minute or two for Katacoda to initialize your Kubernetes
cluster. When your cluster has been initialized, the
`kubectl cluster-info`{{execute}} command will return the cluster info.

Now, let's begin!

## Install the Tekton Dashboard Prerequisites

- [Tekton Pipelines](https://github.com/tektoncd/pipeline/blob/master/docs/install.md)
14
`kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/previous/v0.20.0/release.yaml`{{execute}}
15 16 17 18 19 20 21 22

Verify the pods are running:
`kubectl get pods -n tekton-pipelines`{{execute}}

## Install the Tekton Dashboard

For reference, the installation instructions are [here](https://github.com/tektoncd/dashboard#install-dashboard). To install the Tekton Dashboard, run the following
command:
23
`kubectl apply --filename https://storage.googleapis.com/tekton-releases/dashboard/previous/v0.13.0/tekton-dashboard-release.yaml`{{execute}}
24 25 26 27 28 29 30 31 32 33 34

<!-- `kubectl apply --filename https://storage.googleapis.com/tekton-releases/dashboard/latest/release.yaml`{{execute}} -->

Verify the Dashboard pod is running:
`kubectl get pods -n tekton-pipelines`{{execute}}

## Expose the Tekton Dashboard

View the Tekton Dashboard Service:
`kubectl get svc tekton-dashboard -n tekton-pipelines`{{execute}}

35
The Tekton Dashboard Service is exposed on port `9097`. So, set up a port forward
36 37 38
for the `tekton-dashboard` Service on port `9097`:

```bash
39
kubectl port-forward -n tekton-pipelines --address=0.0.0.0 service/tekton-dashboard 80:9097 > /dev/null 2>&1 &
40 41 42 43 44 45 46 47 48
```{{execute}}

## Open the Tekton Dashboard

Open the `Dashboard` tab in your Katacoda window, or click on the following link:
https://[[HOST_SUBDOMAIN]]-80-[[KATACODA_HOST]].environments.katacoda.com/.

It might take a minute for the ingress and Katacoda to get set up.

49
![Dashboard homepage screenshot](./assets/dashboard-homepage.jpg)