Tekton is a cloud native continuous integration and delivery (CI/CD) solution. It allows developers to build, test, and deploy across cloud providers and on-premises systems.
In this scenario, you will learn about Tekton TaskRuns and PipelineRuns, the custom resources in Tekton for running a specific task or pipeline. More specifically, you will create a TaskRun and PipelineRun that trigger a task and a pipeline respectively, which downloads an app from GitHub and runs some tests.
Note: You can use the resize button on the top-right corner of this scenario to switch to full-screen mode.
You have successfully completed this scenario.
To learn more about Tekton, check out more interactive tutorials Tekton offers or visit tekton.dev.
TaskRuns and PipelineRuns in Tekton
Katacoda is now starting your experimental Kubernetes cluster and configuring Tekton. It may take a few moments to complete.
Check installation progress
kubectl cluster-info to check if the Kubernetes cluster has
been started. You should see the addresses of your Kubernetes cluster master
node and DNS in the output when the initialization completes.
kubectl get pods --namespace tekton-pipelines to check if
Tekton has been installed. All the components listed in the output should
have the status
running when the initialization completes.
The environment is now fully functional.
Getting the code
We’ve put everything you need for this scenario in a GitHub repository. To clone this repository, run the following command:
git clone https://github.com/tektoncd/website
Open the directory
The directory consists of three subdirectories and one file:
app/: the app to test in this scenario.
tekton-katacoda/: Tekton resource specifications you will use in this scenario.
Dockerfile: a Dockerfiles for building
app/into a runnable container image.