Pipeline のすべての Task は、すべての Task が正常に実行されるか、または Task が失敗するまで定義されたシーケンスで実行されます。status フィールドは、監視および監査のために、PipelineRun で各 TaskRun の進捗を追跡し、保存します。
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: build-deploy-api-pipelinerun
spec:
pipelineRef:
name: build-and-deploy
params:
- name: deployment-name
value: vote-api
- name: git-url
value: http://github.com/openshift-pipelines/vote-api.git
- name: IMAGE
value: image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/vote-api
workspaces:
- name: shared-workspace
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi
apiVersion : tekton.dev/v1beta1 1
kind : PipelineRun 2
metadata :
name : build- deploy- api- pipelinerun 3
spec :
pipelineRef :
name : build- and- deploy 4
params : 5
- name : deployment- name
value : vote- api
- name : git- url
value : http: //github.com/openshift- pipelines/vote- api.git
- name : IMAGE
value : image- registry.openshift- image- registry.svc: 5000/pipelines- tutorial/vote- api
workspaces : 6
- name : shared- workspace
volumeClaimTemplate :
spec :
accessModes :
- ReadWriteOnce
resources :
requests :
storage : 500Mi
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow