What is Tekton? Kubernetes-native CI/CD with Tasks, Pipelines, and Chains
Learn what Tekton is, how Task, Pipeline, TaskRun, PipelineRun, and Workspaces fit together, how Triggers and Chains round out the pipeline, and when it makes more sense than GitHub Actions, Jenkins, or Argo Workflows.
Kubernetes$ tkn pipelinerun logs --last -f▍Most CI/CD pipelines run outside the cluster: a Jenkins server, GitHub Actions runners, a VM full of agents. When your whole platform is already Kubernetes, that becomes a separate island, with a different permission model, a different way to scale, and one more thing to maintain. Tekton takes the opposite path: every pipeline step is a pod, and every pipeline is a Kubernetes resource.
What Tekton is
Tekton is an open source framework for building CI/CD systems on top of Kubernetes. It grew out of the former Knative Build, was donated to the Continuous Delivery Foundation (CDF) in 2019 — where it reached graduated status — and, in 2026, it moved: the CNCF TOC accepted the project, which as of November 2026 is listed as Incubating (check the project page). It is licensed under Apache 2.0.
The core component, Tekton Pipelines, is on the 1.x line with the stable tekton.dev/v1 API; on the releases page, the most recent version we saw was v1.18.0, marked LTS. Several subprojects surround it:
- Triggers: creates runs from events (Git webhooks, for example).
- Chains: generates and signs provenance for runs, for your supply chain.
- Dashboard and the
tknCLI: day-to-day visibility and operations.
Tekton is deliberately “low level”: it ships building blocks, not a finished experience. Products such as OpenShift Pipelines are built on top of it.
What problem it solves
- The pipeline as a Kubernetes resource. Pipelines become versionable YAML, applied with
kubectland synced by GitOps like any other object. - Isolation per run. Each
TaskRunis a fresh pod, using whatever image you choose. There is no shared agent piling up leftovers between builds. - The cluster’s own scaling. More builds mean more pods; the node autoscaler handles the rest.
- Reuse. Tasks are parameterized and can be referenced from Git repositories or OCI bundles, with no copy-pasted YAML.
- Supply chain. With Chains, every run can produce a signed attestation of how the artifact was built.
How it works
The model has two halves: definitions (what to do) and runs (one concrete execution).
| Resource | Kind | Role |
|---|---|---|
Task |
Definition | A sequence of steps; each step is a container in the same pod |
Pipeline |
Definition | A graph of Tasks, with ordering (runAfter), parameters, and a finally block |
TaskRun |
Run | Runs a Task once; becomes a pod |
PipelineRun |
Run | Runs a Pipeline and creates the matching TaskRuns |
| Workspace | Shared data | A volume (PVC, ConfigMap, Secret, emptyDir) mounted into Tasks |
| Results | Output | Small values one Task publishes and another consumes |
The steps of a Task share the pod and therefore the workspace file system. Between Tasks, each in its own pod, data flows through workspaces (files) or results (short strings). The controller runs in the tekton-pipelines namespace, and run pods run in whatever namespace you create the PipelineRun in.
Triggers
Tekton Pipelines doesn’t listen for events by itself. Tekton Triggers adds an EventListener (an HTTP Service named el-<name>), Interceptors that validate and filter the payload (there are built-in interceptors for GitHub, GitLab, Bitbucket, and CEL expressions), a TriggerBinding that extracts fields from the event, and a TriggerTemplate that generates the PipelineRun.
Chains
Tekton Chains watches completed TaskRuns and PipelineRuns, turns what happened into a payload — in-toto format by default, with SLSA provenance support — and signs it with x509, cosign, or KMS keys, or keyless with Fulcio. Its configuration lives in the chains-config ConfigMap in the tekton-chains namespace.
Hands-on example
A Task that clones a repository and runs the tests for a Go service, using a workspace for the code:
apiVersion: tekton.dev/v1
kind: Task
metadata:
name: go-test
namespace: ci
spec:
params:
- name: repo-url
type: string
- name: revision
type: string
default: main
workspaces:
- name: source
results:
- name: commit
description: SHA under test
steps:
- name: clone
image: docker.io/alpine/git:latest # pin by digest in production
workingDir: $(workspaces.source.path)
script: |
#!/bin/sh
set -eu
git clone "$(params.repo-url)" .
git checkout "$(params.revision)"
git rev-parse HEAD | tr -d '\n' > "$(results.commit.path)"
- name: test
image: docker.io/library/golang:1.25
workingDir: $(workspaces.source.path)
script: |
go test ./...
computeResources:
requests:
cpu: 500m
memory: 512Mi
---
apiVersion: tekton.dev/v1
kind: Pipeline
metadata:
name: ci-api
namespace: ci
spec:
params:
- name: repo-url
type: string
- name: revision
type: string
default: main
workspaces:
- name: shared
tasks:
- name: test
taskRef:
name: go-test
params:
- name: repo-url
value: $(params.repo-url)
- name: revision
value: $(params.revision)
workspaces:
- name: source
workspace: shared
To run it, create a PipelineRun with a temporary PVC per run (volumeClaimTemplate) and time limits:
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
generateName: ci-api-
namespace: ci
spec:
pipelineRef:
name: ci-api
params:
- name: repo-url
value: https://github.com/your-org/api.git
workspaces:
- name: shared
volumeClaimTemplate:
spec:
accessModes: [ReadWriteOnce]
resources:
requests:
storage: 1Gi
taskRunTemplate:
serviceAccountName: ci-runner
timeouts:
pipeline: "0h20m0s"
Installation and operation, as documented upstream (the tkn CLI was not run for this article):
# Tekton Pipelines (pin a version in production)
kubectl apply --filename https://infra.tekton.dev/tekton-releases/pipeline/latest/release.yaml
kubectl get pods --namespace tekton-pipelines --watch
kubectl create namespace ci
kubectl apply -f go-test-task.yaml -f ci-api-pipeline.yaml
kubectl create -f ci-api-run.yaml # create, because of generateName
tkn pipelinerun list -n ci
tkn pipelinerun logs --last -f -n ci
To fire it from a GitHub push, Triggers wires together the event, the binding, and the template:
apiVersion: triggers.tekton.dev/v1beta1
kind: TriggerBinding
metadata:
name: github-push
namespace: ci
spec:
params:
- name: revision
value: $(body.head_commit.id)
- name: repo-url
value: $(body.repository.clone_url)
---
apiVersion: triggers.tekton.dev/v1beta1
kind: TriggerTemplate
metadata:
name: ci-api-template
namespace: ci
spec:
params:
- name: revision
- name: repo-url
resourcetemplates:
- apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
generateName: ci-api-
spec:
pipelineRef:
name: ci-api
params:
- name: repo-url
value: $(tt.params.repo-url)
- name: revision
value: $(tt.params.revision)
workspaces:
- name: shared
volumeClaimTemplate:
spec:
accessModes: [ReadWriteOnce]
resources:
requests:
storage: 1Gi
---
apiVersion: triggers.tekton.dev/v1beta1
kind: EventListener
metadata:
name: github
namespace: ci
spec:
serviceAccountName: tekton-triggers-sa
triggers:
- name: push-main
interceptors:
- ref:
name: github
params:
- name: secretRef
value:
secretName: github-webhook
secretKey: token
- name: eventTypes
value: ["push"]
bindings:
- ref: github-push
template:
ref: ci-api-template
Finally, Chains: generate the key pair into the secret it expects and pick the provenance format (commands as documented upstream; cosign was not run here):
cosign generate-key-pair k8s://tekton-chains/signing-secrets
kubectl patch configmap chains-config -n tekton-chains \
-p '{"data":{"artifacts.taskrun.format":"slsa/v1","artifacts.oci.storage":"oci"}}'
Image signing and verification details are in supply chain security with Cosign, SBOM, and SLSA.
When to use it (and when not to)
It makes sense when:
- Your platform is Kubernetes and you want CI/CD with the same RBAC, the same quotas, and the same GitOps as everything else.
- You are building an internal platform and need reusable blocks to offer golden paths to many teams.
- Signed provenance (SLSA) is a requirement, and you want to generate it inside the build system itself.
- Builds need to run close to internal cluster resources, without exposing anything to external runners.
Think twice when:
- The team is small and the code already lives on GitHub or GitLab: the built-in CI delivers more with less upkeep.
- Nobody wants to operate Kubernetes for CI: PVCs, quotas, pruning old runs, and Tekton upgrades become your job.
- You expect a rich UI out of the box. The Dashboard is basic; the polished experience usually comes from products built on top.
Before switching tools, measure where your current pipeline hurts; how to improve your CI/CD helps with that diagnosis.
Tekton vs GitHub Actions, Jenkins, and Argo Workflows
| Criterion | Tekton | GitHub Actions | Jenkins | Argo Workflows |
|---|---|---|---|---|
| Where it runs | Pods in your cluster | Hosted or self-hosted runners | Server + agents (VM or pod) | Pods in your cluster |
| Definition | YAML CRDs (Task, Pipeline) |
YAML in .github/workflows |
Jenkinsfile (Groovy) |
Workflow CRD (steps or DAG) |
| Triggers | Tekton Triggers | Native GitHub events | Plugins and webhooks | Argo Events |
| Focus | CI/CD building blocks | CI/CD built into the repository | General automation, many plugins | General workflows, data, and ML |
| UI | Basic Dashboard | Built into GitHub | Its own, extensible | Its own |
| Governance | CNCF (Incubating) | GitHub product | Jenkins/CDF | CNCF (Graduated, Argo project) |
A common pattern: Tekton (or any CI) builds, tests, and publishes the image; Argo CD or Flux delivers it. That split is covered in depth in GitOps: separating CI from CD.
Summary
- Tekton is Kubernetes-native CI/CD; it left the CDF and is CNCF Incubating as of November 2026
- Task and Pipeline are definitions; TaskRun and PipelineRun are runs, and each TaskRun becomes a pod
- Workspaces move files between Tasks; results move short values
- Use
tekton.dev/v1for Pipelines andtriggers.tekton.dev/v1beta1for Triggers - Triggers turns webhooks into PipelineRuns, with interceptors validating the payload
- Chains signs in-toto/SLSA provenance for runs
- For small teams already on GitHub or GitLab, the built-in CI is usually enough
Tekton isn’t the easiest CI to start with — it’s the one that looks most like the rest of your Kubernetes platform.