Skip to content

Commit 7265681

Browse files
concaftekton-robot
authored andcommitted
Add installation instructions for OpenShift
This commit documents the steps required to install Chains on OpenShift.
1 parent 61c3449 commit 7265681

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,44 @@ NAME READY STATUS RESTARTS AGE
5656
tekton-chains-controller-c4f7c57c4-nrjb2 1/1 Running 0 160m
5757
```
5858

59+
#### Installation on OpenShift
60+
Prerequisite: you'll need [Tekton Pipelines](https://github.com/tektoncd/pipeline/blob/main/docs/install.md#installing-tekton-pipelines-on-openshift) installed on your OpenShift cluster before you install Chains.
61+
62+
To install Tekton Chains on OpenShift, you must first apply the `anyuid` security
63+
context constraint to the `tekton-chains-controller` service account. This is required to run the controller pod.
64+
See
65+
[Security Context Constraints](https://docs.openshift.com/container-platform/4.3/authentication/managing-security-context-constraints.html)
66+
for more information.
67+
68+
1. Log on as a user with `cluster-admin` privileges. The following example
69+
uses the default `system:admin` user:
70+
71+
```bash
72+
oc login -u system:admin
73+
```
74+
75+
1. Set up the namespace (project) and configure the service account:
76+
77+
```bash
78+
oc new-project tekton-chains
79+
oc adm policy add-scc-to-user anyuid -z tekton-chains-controller
80+
```
81+
82+
1. Install Tekton Chains:
83+
84+
```bash
85+
oc apply --filename https://storage.googleapis.com/tekton-releases/chains/latest/release.yaml
86+
```
87+
See the
88+
[OpenShift CLI documentation](https://docs.openshift.com/container-platform/4.3/cli_reference/openshift_cli/getting-started-cli.html)
89+
for more information on the `oc` command.
90+
91+
1. Monitor the installation using the following command until all components show a `Running` status:
92+
93+
```bash
94+
oc get pods --namespace tekton-chains --watch
95+
```
96+
5997
### Setup
6098

6199
To finish setting up Chains, please complete the following steps:

0 commit comments

Comments
 (0)