DevOps.com

Where the world meets DevOps

  • Latest
    • Articles
    • Features
    • Most Read
    • News
    • News Releases
  • Topics
    • AI
    • Continuous Delivery
    • Continuous Testing
    • Cloud
    • Culture
    • DevSecOps
    • Enterprise DevOps
    • Leadership Suite
    • DevOps Practice
    • ROELBOB
    • DevOps Toolbox
  • Chat
  • Webinars
    • Upcoming
    • On-Demand Webinars
  • Library
  • Events
    • Virtual Summits
    • Conferences
  • Sponsored Communities
    • CloudBees
  • Related Sites
    • MediaOps
    • Container Journal
    • Security Boulevard
    • SweetCode.io
    • Digital Anarchist
    • DevOps TV on YouTube
    • DevOps Chat on SoundCloud
    • DevOps Connect
    • DevOps Dozen
  • Follow Us
    • Twitter
    • Google News
    • LinkedIn
    • Facebook
    • DevOps TV on YouTube
    • Email
MENUMENU
  • AI
    • IBM AI

      IBM Zones in on DevOps for AI

      Virtana

      Virtual Instruments Changes Name to Virtana to Drive AIOps

      AIOps for Mission Critical Workloads

      What is so Special About AIOps for Mission Critical Workloads?

      Continuous Optimization

      Continuous Optimization: An Idea Whose Time Has Come?

      Kong Employs Machine Learning to Extend Services Control

      Kong Employs Machine Learning to Extend Services Control

  • Cloud
    • Mario's Adventures in Tekton Land

      Mario’s Adventures in Tekton Land

      Kubernetes and NVMF

      The NVMF Boogie: How Kubernetes and NVMF Will Rock

      AWS Application Patterns

      What Are AWS Application Patterns?

      Implementing Message Queue in Kubernetes

      Implementing Message Queue in Kubernetes

      Azure On-Premises

      Microsoft Extends Azure Reach to On-Premises IT Environs

  • Continuous Delivery
    • Harness

      Harness Adds Analytics to CDaaS Platform

      Dell Boomi Dives Into DevOps

      Dell Boomi Dives Into DevOps

      Implement an Effective CI/CD Pipeline

      How to Implement an Effective CI/CD Pipeline

      CloudBees continuous delivery

      CloudBees Advances Continuous Delivery

      OverOps

      OverOps Integrates AI Code Analyzer With CI/CD Platforms

  • Continuous Testing
    • IBN’s Success is Driven by Formulating the Right Test Validation Strategy

      IBN’s Success is Driven by Formulating the Right Test Validation Strategy

      Steps to Ensuring Validity of Your Business-Critical Data

      5 Steps to Ensuring Validity of Your Business-Critical Data

      Agile and DevOps Success Needs Continuous Testing

      Agile and DevOps Success Needs Continuous Testing

      How Continuous Testing Advances Your Business Goals

      How Continuous Testing Advances Your Business Goals

      CloudBees' Acquisition of Rollout: The CEOs' View

      CloudBees’ Acquisition of Rollout: The CEOs’ View

  • DevSecOps
    • AWS Application Patterns

      What Are AWS Application Patterns?

      DevSecOps

      Survey Surfaces Uneven Approaches to DevSecOps

      Breaking Down the OWASP API Security

      Breaking Down the OWASP API Security Top 10, Part 1

      Five Tips DevSecOps Training

      Five Tips to Approach DevSecOps Training

      Mobile App Security

      Why Mobile App Security is Like a Rubik’s Cube

  • Leadership Suite
    • CIOs See Dramatic Change Ahead

      CIOs See Dramatic Change Ahead

      DevOps at a Distance

      DevOps at a Distance

      Getting RPA Right the First Time

      Getting RPA Right the First Time

      Harnessing the Power of Developers

      Harnessing the Power of Developers

      Observability Strategy for Microservices

      Four Steps to Implement an Observability Strategy for Microservices

  • Practices
    • Eficode Adds Analytics to Managed DevOps Service

      Eficode Adds Analytics to Managed DevOps Service

      Mario's Adventures in Tekton Land

      Mario’s Adventures in Tekton Land

      Open Source Software Mobile Connectivity

      How Open Source Software Is Defining the Future of Mobile Connectivity

      Kubernetes and NVMF

      The NVMF Boogie: How Kubernetes and NVMF Will Rock

      AWS Application Patterns

      What Are AWS Application Patterns?

  • ROELBOB
    • self-importance

      A Matter of Self-Importance

      value-of-magic

      The Value of Magic

      state-of-the-art

      State of the Art

      key-competencies

      Key Competencies in the Workplace

      to-be-a-leader

      To Be a Leader

  • Toolbox
    • Eficode Adds Analytics to Managed DevOps Service

      Eficode Adds Analytics to Managed DevOps Service

      Mario's Adventures in Tekton Land

      Mario’s Adventures in Tekton Land

      Kubernetes and NVMF

      The NVMF Boogie: How Kubernetes and NVMF Will Rock

      AWS Application Patterns

      What Are AWS Application Patterns?

      DevOps at a Distance

      DevOps at a Distance

  • More Topics
    • Application Performance Management/Monitoring
    • Culture
    • Enterprise DevOps

Home » Blogs » DevOps Practice » Mario’s Adventures in Tekton Land

Mario's Adventures in Tekton Land

Mario’s Adventures in Tekton Land

Vincent DemeesterBy Vincent Demeester on November 8, 2019 Leave a Comment

Tekton is an open source, cloud-native CI/CD pipelines engine. The project has its roots in the Knative project, where about one year ago it started under the name “Knative Pipeline,” with the aim of providing an extension to build Knative’s own “source to image” service. About a year and a half ago the project was reborn as Tekton and it moved out of the Knative space to its own GitHub organization and it joined the newly formed CD Foundation with a new mission: becoming the common denominator for CI/CD in the cloud-native space. But how is Tekton going to achieve its new aspirations?

Related Posts
  • DevOps Chat: The CD Foundation, with CloudBees’ Kohsuke Kawaguchi and Tracy Miranda
  • CLOUDBEES AND GOOGLE CLOUD PARTNER TO ACCELERATE APPLICATION DEVELOPMENT ON ANTHOS
  • The Linux Foundation Launches Continuous Delivery Foundation
    Related Categories
  • Blogs
  • DevOps in the Cloud
  • DevOps Practice
  • DevOps Toolbox
  • Doin' DevOps
    Related Topics
  • CI/CD
  • Knative
  • KubeCon
  • kubernetes
  • Tekton
Show more
Show less

For it to be successful, we wanted Tekton to be intuitive, reliable and easy to operate and maintain. This was discussed in the Tekton working group, and we thought it would be useful if we started using Tekton ourselves as part of our day-to-day jobs, using it to provide CI/CD services to the community.

Diving into Tekton

Tekton pipeline aims to provide a set of components used to create a full-fledged cloud-native CI/CD system on top of Kubernetes.

The core project of Tekton (tektoncd/pipeline) defines a set of Kubernetes custom resources (CRD) as standard constructs for creating CI/CD pipelines. The following is a brief introduction to these CRDs:

  • Task: A sequence of commands (steps) that are run in separate containers in a pod.
  • Pipeline: A collection of tasks executed in a defined order.
  • PipelineResource: Inputs (e.g. git repo) and outputs (e.g. image registry) to a pipeline.
  • TaskRun: Runtime representation of an execution of a task.
  • PipelineRun: Runtime representation of an execution of a pipeline.

Those pipeline building blocks can be reused, version controlled and curated in a catalog (tektoncd/catalog) that embeds best practices.

In addition, the Tekton community works on providing more components:

  • Tekton Triggers (tektoncd/triggers) to be able to act upon events (for example: GitHub webhooks, CloudEvents and more).
  • Tekton CLI (tektoncd/cli), which provides a command-line interface focused on the Tekton APIs and features (like getting the logs of your run, starting pipelines and more).
  • Tekton Dashboard (tektoncd/dashboard) which provides a simple dashboard (à-la-kube-dashboard) to view pipelines and logs from your browser.

Re-Plumbing Test Infrastructure

We designed Tekton to be intuitive, reliable and easy to operate and maintain. We started using Tekton ourselves as part of our day-to-day job, using it to provide CI/CD services to the community. But we didn’t start from a blank canvas.

Tekton inherited a few features from the Knative ecosystem, including the CI setup. This was great as it allowed the project to relatively easily kick-start its CI using tools shared with several other projects in the Kubernetes ecosystem (including Kubernetes itself)–a combination of Prow, Tide, Boskos, a few tools from k8s.io/test-infra and several bash scripts contribute to tasks such as running E2E integration test.

Deployment of the various CI services is manual and the same is true about their configuration. Releases are crafted mostly manually. Since Tekton is made of several projects, we set up tektoncd/plumbing repository to host the shared CI/CD infrastructure: prow configuration, shared test scripts and tools, test docker images. Mario adventure started!

Mario’s Adventures

We started to work on what we are calling the Dogfooding project, which is basically using Tekton to build Tekton. And like a ball of wool and a cat, the more we thought about it, the more questions we had. How is Tekton going to integrate with the existing prow-based CI infrastructure? How are we going to test changes to the plumbing repo in isolation? How are we going to deploy the instance of Tekton used to run Tekton CI pipelines? How are we going to do all that with no disruption to our CI service?

Testing code continuously is essential infrastructure, even more so for cloud-native software, and re-plumbing all at once could leave us without running water. We decided to proceed with baby steps, reducing the area of impact as much as possible and starting our journey tackling the release automation work first.

Here is an excerpt of the work we did on this journey:

  1. Run our releases using Tekton. That was the initial work, using Tekton to at least release itself, even if it gets triggered manually.
  2. Integrating Tekton and Prow. Prow is able to create Tekton resources since April of this year (#11888 if you are curious), although it took a few iterations to be able to use it on our own CI.
  3. Looking at solutions without using Prow at all. This one was (and still is) the trickiest:
    • We needed something that is able to react based on events (from GitHub), this is where the tektoncd/triggers project comes into place.
    • Prow comes with a UI and tooling to capture and store logs. This piece is missing from the Tetkon project as of today. We do have the tektoncd/dashboard project but it’s early days, there is no support for authentication yet.

Mario’s Adventures at KubeCon

Mario’s adventures will continue at KubeCon in San Diego. If you’re attending the conference  and you’re curious to know more, come and listen to our talk, or watch it on the CNCF youtube channel after the conference.

This article was co-authored by Andrea Frittoli is a developer advocate at IBM and an open source enthusiast. He is a contributor to the Tekton project and he has contributed to OpenStack for several years. He’s a strong advocate for transparency in open source. Andrea has previously been a speaker at FOSSASIA, FOSS Backstage, OpenStack summits, Open Source Summits, Devoxx Days and various meetups.