Deploying Tekton on OpenShift 4

Page content

In this Post I will show you how you can install rad hat openshift pipelines (Tekton) on OpenShift4.

Configure RedHat registry Authentication

The first thing we will need to do is set up authentication to the RedHat registry. To do this, we will start with a copy of your OpenShift pull-secret. Download your registry.redhat.io pull secret from the RedHat OpenShift Cluster Manager and save it to your home directory as pull-secret.json.

If you configured a valid pullSecret in install-config.yaml at install you didn’t nead this.

oc project openshift-config
oc delete secret pull-secret
oc create secret generic pull-secret --from-file=.dockerconfigjson=/tmp/pull-secret.json --type=kubernetes.io/dockerconfigjson


Enable all the Operator sources in OpenShift 4

The nex step is to enable all the Operator sources in OpenShift 4.

You will need to have Cluster Admin privileges in order to run the commands in the following section.

oc patch OperatorHub cluster --type json -p '[{"op": "add", "path": "/spec/disableAllDefaultSources", "value": false}]'
operatorhub.config.openshift.io/cluster patched


At this point, you can validate that the Operator Hub in OpenShift is empty by checking in the UI:

Install the rad hat openshift pipelines operator

In order to use Tekton in OpenShift we will install an operator from use the user interface of the OpenShift Web Console: