--- title: Deploying Tekton on OpenShift 4 url: https://devopstales.github.io/kubernetes/openshift4-tekton/ date: 2023-01-20 keywords: openshift 4.11, openshift okd4, openshift container platform, rad hat openshift, tekton, rad hat openshift pipelines --- In this Post I will show you how you can install rad hat openshift pipelines (Tekton) on OpenShift4. <!--more--> {{< content "/filedir/openshift4.html" >}} ### 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](https://console.redhat.com/openshift/install/pull-secret) 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. ```bash 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. ```bash 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: ![Example image](/img/include/okd-tekton001.webp) ![Example image](/img/include/okd-tekton002.webp) ### 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: ![Example image](/img/include/okd-tekton003.webp) ![Example image](/img/include/okd-tekton004.webp) ![Example image](/img/include/okd-tekton005.webp) ![Example image](/img/include/okd-tekton006.webp) ![Example image](/img/include/okd-tekton007.webp)