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
    • Testim

      Testim Adds SDK to AI-Based Testing Platform

      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?

  • Cloud
    • Build Reliable App

      What It Really Takes to Build a Reliable App

      Serverless and GraphQL

      Serverless and GraphQL: Build and Launch at the Speed of Thought

      How Organizations Benefit from AWS App Patterns

      How Organizations Benefit from AWS App Patterns

      Accelerating Cloud Wars

      The Accelerating Cloud Wars

      Engineering Approach to DevOps

      The Time Has Come for an Engineering Approach to DevOps

  • 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
    • Three Ways Developers Can Worry Less About Security

      Three Ways Developers Can Worry Less About Security

      Engineering Approach to DevOps

      The Time Has Come for an Engineering Approach to DevOps

      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

  • Leadership Suite
    • developers

      Developers Are Gaining Clout, and We Need to Pay Attention

      Accelerating Cloud Wars

      The Accelerating Cloud Wars

      ServiceNow, Salesforce and Atlassian Work Together

      Crossing the Ecosystem Boundaries: How ServiceNow, Salesforce and Atlassian Work Together

      CIOs See Dramatic Change Ahead

      CIOs See Dramatic Change Ahead

      DevOps at a Distance

      DevOps at a Distance

  • Practices
    • Organizational Change Scaled DevOps

      Achieving Organizational Change Through Scaled DevOps

      Strategic Focus Agile Releases

      Maintaining Strategic Focus During Agile Releases

      Build Reliable App

      What It Really Takes to Build a Reliable App

      Load Balancing Round Robin

      Load Balancing: Round Robin May Not Be the Right Choice

      Serverless and GraphQL

      Serverless and GraphQL: Build and Launch at the Speed of Thought

  • ROELBOB
    • Dev-Prod-Parity-Real-World

      Dev-Prod Parity in the Real World

      employment-benefits

      Employment Benefits

      self-importance

      A Matter of Self-Importance

      value-of-magic

      The Value of Magic

      state-of-the-art

      State of the Art

  • Toolbox
    • Testim

      Testim Adds SDK to AI-Based Testing Platform

      The Power of Embedded Analytics and the Build Versus Buy Dilemma

      The Power of Embedded Analytics and the Build Versus Buy Dilemma

      How Organizations Benefit from AWS App Patterns

      How Organizations Benefit from AWS App Patterns

      Engineering Approach to DevOps

      The Time Has Come for an Engineering Approach to DevOps

      Eficode Adds Analytics to Managed DevOps Service

      Eficode Adds Analytics to Managed DevOps Service

  • 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 a 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 eight months 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
  • Under the Hood of Jenkins X – A CI/CD Solution for Cloud Applications on Kubernetes
    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.

Filed Under: Blogs, DevOps in the Cloud, DevOps Practice, DevOps Toolbox, Doin' DevOps Tagged With: CI/CD, Knative, KubeCon,