O'Reilly logo
live online training icon Live Online training

Power Up with Tekton Pipelines

Hands-on Introduction To Tekton Pipelines

Topic: System Administration
Joel Lord

The ultimate goal of software agility is to be able to deploy frequently and rapidly. To do so, software developers need the appropriate tools. This is where CI/CD will come into play. By automating the processes related to application deployment, software developers can ensure more frequent and robust software deployments.

There are many continuous delivery solutions out there, but one is starting to stand out by its truly cloud-native approach. Tekton is an open-source, cloud-native framework for creating CI/CD systems. Its architecture, using composable, reproducible and declarative blocks, makes it easy for software developers to create and maintain their pipelines to automate their software deployment. As Tekton runs natively on Kubernetes and is backed by large players like Google and Red Hat, it is obviously an appealing choice for developers.

What you'll learn-and how you can apply it

  • What is Tekton
  • The Basic Building Blocks (Steps, Tasks, Pipelines)
  • Executing TaskRuns and PipelineRuns
  • Adding Parameters
  • Using Pipeline Resources
  • Sharing Workspaces between Tasks
  • Using Conditionals to tweak pipelines
  • Using the VS Code extension for Tekton

This training course is for you because...

  • You are a software developer that runs applications on Kubernetes and you want to integrate your CI/CD within this infrastructure.
  • You are a software developer that wants to start using continuous integration and continuous delivery to make quicker and more robust software delivery.

Prerequisites

  • Basic Linux command line experience
  • Basic familiarity with Kubernetes

Course Set-up

  • A modern web browser
  • The git command line tool
  • Access to a Kubernetes cluster (Minikube is fine)
  • (optional) VS Code

Recommended Preparation

Recommended Follow-up

About your instructor

  • Joel Lord is passionate about web and technology in general. He likes to learn new things, but most of all, he likes to share his discoveries. He does so by traveling to various conferences all around the globe.

    He graduated with a college degree in computer programming back in the last millennium. Apart from a little break to get his BSc in computational astrophysics, he has always been in the industry. As a developer advocate with Red Hat OpenShift, he meets with developers to help them make the web a better place.

    During his free time, he is usually found stargazing in a campsite somewhere or brewing a fresh batch of beer in his garage.

Schedule

The timeframes are only estimates and may vary according to how the class is progressing

Segment 1: Introduction to CI/CD and Tekton 30 minutes

  • Intro and presentation
  • What is CI/CD
  • Why use cloud-native solutions
  • What is Tekton
  • Steps, Tasks and Pipelines
  • Pipeline Resources, TaskRuns and PipelineRuns
  • Workspaces and Conditions

Segment 2: Installing Tekton on minikube 20 minutes

  • Install Tekton on a minikube or other Kubernetes
  • Install the tkn command line tool
  • Install the VS Code extension

Q&A/Break 10 minutes

Segment 3: Building a Task 25 minutes

  • “Hello World” task
  • Add parameters to a task
  • Adding multiple steps and sharing a volume

Segment 4: Building a Pipeline 25 minutes

  • Create a reusable task
  • “Hello World” pipeline
  • Parallel and sequential tasks in a pipeline

Q&A/Break 10 minutes

Segment 5: Adding Resources 25 minutes

  • Create a git resource
  • Add a resource to a pipeline

Segment 6: Introducing Workspaces and Conditions 25 minutes

  • Create a persistent volume and persistent volume claim
  • Create a shared workspace
  • Add workspace to a pipeline
  • Add a condition to a pipeline

Q&A/Break 10 minutes

Segment 7: Build Your Own Pipeline 1 hour

  • Build a real world pipeline
  • In this segment, attendees are left to create a pipeline to deploy an application that is provided in a git repository

Course wrap-up and next steps