1.2. 使用 Red Hat OpenShift Pipelines Operator 安装 Tekton 链
集群管理员可以使用 TektonChain 自定义资源(CR)来安装和管理 Tekton 链。
注意
Tekton Chains 是 Red Hat OpenShift Pipelines 的一个可选组件。目前,您无法使用 TektonConfig CR 安装它。
先决条件
-
确保在集群中的
openshift-pipelines命名空间中安装了 Red Hat OpenShift Pipelines Operator。
流程
为 Red Hat OpenShift Pipelines 集群创建
TektonChainCR。Copy to Clipboard Copied! Toggle word wrap Toggle overflow 应用
TektonChainCR。oc apply -f TektonChain.yaml
$ oc apply -f TektonChain.yaml1 Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- 使用
TektonChainCR 的文件名替换。
检查安装的状态。
oc get tektonchains.operator.tekton.dev
$ oc get tektonchains.operator.tekton.devCopy to Clipboard Copied! Toggle word wrap Toggle overflow