Cloud Native 4 min read

Getting Started with Tekton: Installation, Task Creation, and Execution on Kubernetes

This guide introduces Tekton, a Kubernetes‑native CI/CD framework, and walks through installing it on an OKD cluster, creating and running a simple Task and TaskRun, handling image pull issues, and verifying pipeline execution, providing practical commands and YAML examples.

DevOps Cloud Academy
DevOps Cloud Academy
DevOps Cloud Academy
Getting Started with Tekton: Installation, Task Creation, and Execution on Kubernetes

Tekton is a powerful and flexible Kubernetes‑native open‑source framework for building continuous integration and delivery (CI/CD) systems, abstracting underlying implementation details so users can build, test, and deploy across multiple cloud platforms and on‑premise environments.

Installation steps include logging into an OKD cluster, creating a project, granting the necessary permissions, and applying the latest Tekton release YAML. Example commands are:

oc login -u system:admin
oc new-project tekton-pipelines
oc adm policy add-scc-to-user anyuid -z tekton-pipelines-controller
oc apply --filename https://storage.googleapis.com/tekton-releases/latest/release.yaml
oc get pods --namespace tekton-pipelines --watch

Because the default images are hosted on Google’s registry, pull failures may occur; the guide suggests pulling the images from a personal Docker Hub repository and updating the image names in release.yaml accordingly:

docker pull lizeyang123/tekton-pipeline-webhook:latest
docker pull lizeyang123/tekton-pipeline-controller:latest

Creating a Task involves defining a Task YAML file (e.g., task.yml ) such as:

apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
name: echo-hello-world
spec:
steps:
- name: echo
image: centos
command:
- echo
args:
- "hello world"

The task is created with oc create -f task.yml .

Running the Task is done by creating a TaskRun YAML (e.g., taskrun.yml ) like:

apiVersion: tekton.dev/v1alpha1
kind: TaskRun
metadata:
name: echo-hello-world-task-run
spec:
taskRef:
name: echo-hello-world
trigger:
type: manual

The TaskRun is launched with oc create -f taskrun.yml and its status can be inspected using oc get taskruns .

The article concludes with a thank‑you note inviting readers to leave comments and share the guide.

Cloud NativeCI/CDKubernetesDevOpspipelinetaskTekton
DevOps Cloud Academy
Written by

DevOps Cloud Academy

Exploring industry DevOps practices and technical expertise.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.