Tekton turns a Kubernetes cluster into a build platform: every pipeline is a PipelineRun that schedules pods, every step runs in a container, every artifact crosses a workspace. The install is a few manifests, but a Tekton platform that survives real load needs five components — controllers, dashboard, triggers, results, and a chains/SBOM sidecar — plus garbage collection and storage tuning that nobody mentions in the quickstart. This article is the install layout we ship for clients.
How to verify
kubectl get pods -n tekton-pipelines
kubectl get pods -n tekton-pipelines-resolvers
kubectl get crd | grep tekton.dev
tkn version
kubectl -n tekton-pipelines get cm config-defaults config-feature-flags -o yaml
tkn pipeline list -A
tkn pipelinerun list -A --limit 5
tkn (the CLI) is the operator-side instrument; everything else runs as a controller. If the controller pods aren’t Running, no PipelineRun progresses, and the symptom is “tasks stuck pending” with no useful events on the run object itself — you have to look at the controller logs.
What’s happening
Tekton is a set of Kubernetes CRDs (Task, Pipeline, TaskRun, PipelineRun, plus EventListener/TriggerBinding/TriggerTemplate from the triggers project) and a controller that reconciles them into pods. A Task is a list of steps (containers) that share a workspace. A Pipeline is a DAG of tasks. A PipelineRun is an instance — the controller creates a pod per task, schedules it, captures status, and writes results.
The four installable projects are:
- Pipelines (the core controller + CRDs) — required.
- Triggers — webhook receivers that turn an inbound HTTP payload into a
PipelineRun. - Dashboard — the read-only web UI for browsing runs.
- Results — long-term storage for completed runs (Pipelines itself only keeps recent runs in etcd; without Results, you lose history).
- Chains (optional) — signs build artifacts and writes provenance attestations.
The piece nobody warns you about: a busy Tekton cluster generates hundreds of TaskRun objects per day, each with its own pod. Without aggressive pruning and a real volume backend, etcd fills, the node hits inode limits, or the default emptyDir workspaces eat the host’s ephemeral storage. The defaults are tuned for a demo, not a build farm.
The procedure
-
Install Pipelines. Use the released manifest; do not assemble pieces from the source tree:
kubectl apply --filename \ https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml kubectl wait --for=condition=Established crd/pipelineruns.tekton.dev --timeout=60s kubectl -n tekton-pipelines rollout status deploy/tekton-pipelines-controller -
Configure feature flags and defaults. Edit
config-feature-flagsandconfig-defaultsintekton-pipelines. The two that matter most:# config-feature-flags data: enable-api-fields: "stable" # or "beta" for newer features disable-affinity-assistant: "false" # leave on so RWO PVCs schedule one node enable-tekton-oci-bundles: "false" # deprecated — use Bundles resolver # config-defaults data: default-timeout-minutes: "60" default-pod-template: | securityContext: runAsNonRoot: true seccompProfile: { type: RuntimeDefault } -
Install Triggers. Only if you need webhook-driven pipelines:
kubectl apply --filename \ https://storage.googleapis.com/tekton-releases/triggers/latest/release.yaml kubectl apply --filename \ https://storage.googleapis.com/tekton-releases/triggers/latest/interceptors.yamlThen create an
EventListenerper source (GitHub, GitLab, Bitbucket) with aServiceAccountthat hastriggers.tekton.dev/v1beta1create permission and the secret token stored as aSecretreferenced by aGitHubinterceptor. -
Install Dashboard. Read-only by default, which is what you want; the read-write variant lets the UI cancel and rerun pipelines, which is the wrong default for shared environments:
kubectl apply --filename \ https://storage.googleapis.com/tekton-releases/dashboard/latest/release.yaml -
Install Results. Without this, etcd is your history store:
kubectl apply --filename \ https://storage.googleapis.com/tekton-releases/results/latest/release.yamlPoint it at a Postgres database (the in-cluster default is for evaluation only). The Results API server reads from Postgres; the watcher writes completed PipelineRuns and TaskRuns to it.
-
Pruning. Add a
TektonConfig(or a vanillaCronJob) that deletes completed runs older than 24-48 hours:kubectl -n tekton-pipelines create -f - <<'EOF' apiVersion: batch/v1 kind: CronJob metadata: { name: tekton-prune } spec: schedule: "*/30 * * * *" jobTemplate: spec: template: spec: serviceAccountName: tekton-pruner restartPolicy: OnFailure containers: - name: tkn image: gcr.io/tekton-releases/dogfooding/tkn:latest command: ["sh","-c"] args: ["tkn pipelinerun delete --all --keep 50 -f && tkn taskrun delete --all --keep 200 -f"] EOF -
Workspaces and storage. For artifact-heavy pipelines, declare a
volumeClaimTemplateworkspace on thePipelineRunso the controller creates aPersistentVolumeClaimper run and deletes it when the run is pruned.emptyDiris fine for tiny pipelines but is per-pod, so it doesn’t pass data between tasks unless they’re on the same node. -
RBAC. Pipelines run as the
ServiceAccountnamed on thePipelineRun(defaultdefault). Create one SA per tenant namespace and useRolesto scope it to the resources the pipeline actually needs to touch (image registry secret, deploy target). Cluster-widecluster-adminfor build pipelines is a recurring incident waiting to happen.
Common pitfalls
emptyDirworkspace, multi-task pipeline. Tasks run in different pods; data does not survive between them. Use a PVC workspace.- No pruner. Six weeks in, the cluster has 50,000 completed PipelineRuns and etcd compaction is taking 90 seconds.
- Trigger webhook open.
EventListenerexposed without an interceptor validating the source signature accepts any payload — anyone can trigger pipelines and burn your CI budget. runAsRootstep containers. Step pods inherit the pod template; if you don’t setrunAsNonRoot, every build step runs root. PodSecurity admission will eventually break this for you, but in a noisy way.- Resolver vs bundle confusion. OCI Bundles are deprecated; use the Bundles resolver (
resolver: bundles) to reference pipelines stored as OCI artifacts.
We stand up Tekton platforms as part of the build-system layer in our Kubernetes engagements: the controllers, Postgres-backed Results, signed images via Chains, pruner, and tenant AppProject boundaries are configured once and operated by our team. Clients write Pipeline definitions in their own repos and we keep the platform healthy underneath. The shape of that engagement is /en/services/managed-operations/.