From the course: Automating Kubernetes with GitOps

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Running Tekton pipelines

Running Tekton pipelines

- All right. In the previous video, we have seen how to create task and TaskRuns. It's only going to be nice if we organize this in a more efficient way. That's where the Pipeline comes in. So a Pipeline organizes Tasks to run in a specific order. And, if a Task uses params, which really are variables, these may be defined in the Pipeline specification for further handling by the Task. To run a Pipeline, a PipelineRun object is needed. And the PipelineRun set the values for parameters and runs the Pipeline. The Pipeline runs the Tasks, and creates one Pod for each Task, with one container for each step in these Tasks. Let me show you. So let's first have a look at secondtask. And what do we see in secondtask? We see in secondtask that we have a Task with the name secondtask, and a step with the name goodbye, that is using the image: alpine, and which is using "goodbye $(params.username)!". Now we can see that params is set here, so username, and the type is set to string, but we don't…

Contents