WorkflowTemplate (argo)
再利用可能なワークフローをテンプレートして定義したもの
関数みたいに、引数渡して実行できるワークフローと捉えれば良いmrsekut.icon
Workflow (argo)から呼び出される
docs
Workflow Templateのmanifestの例を読んで構造を捉える
例
code:yaml
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: hello-template
spec:
entrypoint: main
templates:
- name: main
container:
image: alpine
command: echo, "hello"
↑をWorkflow (argo)から参照して実行する
code:yaml
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: run-hello-
spec:
workflowTemplateRef:
name: hello-template # 登録済みテンプレートを呼び出すだけ
大きく分けて2つのカテゴリ、全部で9種類のtemplate (argo)がある
Template Definitions
Podを起動してコンテナ上で実行する作業を定義するテンプレート
Container Template
Script Template
Resource Template
Suspend Template
Plugin Template
Container Set Template
HTTP
Template Invocators
他のテンプレートの呼び出しや、実行制御のためのテンプレート
Steps Template
DAG Template