Install the CLI for OpenShift in your environment.
Make sure you have Tekton installed in your environment.
To install Tekton Pipelines on OpenShift, you must first apply the anyuid security context constraint to the tekton-pipelines-controller service account. This is required to run the webhook Pod.
- Log on as a user with cluster-admin privileges. The following example uses the kubeadmin password provided when the cluster is created:
oc login --server=https://api.$cluster_name.scp.labs.automationlogic.com:6443 -u kubeadmin
- Use a dedicated namespace (project) to install the Tekton Operators in:
oc new-project tekton-pipelines
oc adm policy add-scc-to-user anyuid -z tekton-pipelines-controller
oc adm policy add-scc-to-user anyuid -z tekton-pipelines-webhook
- Install Tekton Pipelines:
oc apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.notags.yaml
- Monitor the installation using the following command until all components show a Running status:
oc get pods --namespace tekton-pipelines --watch
Congratulations! You have successfully installed Tekton Pipelines on your OpenShift environment.