需要设置环境变量ARCHIVED_WORKFLOW_GC_PERIOD来调整该值,修改 argo-workflows-workflow-controller 增加 env,就像这样: env: - name: ARCHIVED_WORKFLOW_GC_PERIOD value: 1m 测试 接下来创建 Workflow 看下是否测试 for ((i=1; i<=10; i++)); do cat <<EOF | kubectl create -f - apiVersion: argopro...
apiVersion: argoproj.io/v1alpha1 kind: Workflow metadata: generateName: artifact-gc- spec: entrypoint: main artifactGC: strategy: OnWorkflowDeletion # the overall strategy, which can be overridden podMetadata: annotations: kubernetes.io/resource-type: eci templates: - name: main container: image:...
apiVersion:argoproj.io/v1alpha1kind:Workflowmetadata:generateName:steps-spec:entrypoint:hello# We reference our first "template" heretemplates:-name:hello# The first "template" in this Workflow, it is referenced by "entrypoint"steps:# The type of this "template" is "steps"--name:hellotemplate...
WorkflowTemplate 是最重要的对象了,基本上绝大部分时间你都是和它在打交道,其中还有一个 template 的定义,在刚认识 Argo workflow 时需要注意区分的一点是 workflowTemplate 和 template,这在我刚入门时也造成了一点困惑,接下来讲一下这两个的区别: workflowTemplate 是 argo workflow 中实现的 CRD 对象,而 templa...
一个简单的 CronWorkflow 如下: apiVersion: argoproj.io/v1alpha1 kind: CronWorkflow metadata: name: test-cron-wf spec: schedule: "* * * * *" concurrencyPolicy: "Replace" startingDeadlineSeconds: 0 workflowSpec: entrypoint: whalesay templates: - name: whalesay container: image: alpine:3.6 com...
workflow-controller 的 deployment yaml 如下: apiVersion: apps/v1 kind: Deployment metadata: name: argo-workflow-argo-workflows-workflow-controller namespace: argo-dev spec: template: metadata: spec: containers: - args: - --configmap - argo-workflow-argo-workflows-workflow-controller-configmap - -...
apiVersion:argoproj.io/v1alpha1kind:Workflowmetadata:generateName:slack-example-spec:entrypoint:maintemplates:-name:mainplugin:slack:text:"{{workflow.name}} finished!" 插件将改变用户使用 Argo 工作流构建平台的方式。了解更多关于插件模板在文档[1]。
workflow-controller是流程控制器 然后配置一个server端的ingress,即可访问UI,配置清单如下(我这里使用的是traefik): 复制 apiVersion: traefik.containo.us/v1alpha1kind: IngressRoutemetadata:name: argo-uinamespace: argospec:entryPoints:- webroutes:- match: Host(`argowork-test.coolops.cn`)kind:Ruleservic...
apiVersion: argoproj.io/v1alpha1kind: Workflowmetadata: name: python-appspec: entrypoint: python-app templates: - name: python-app steps: - - name: build template: build - - name: test template: test - - name: deploy template: deploy - name: build contai...
可以利用 Kubernetes API 对 Argo 进行控制。 用户可以通过 CLI、Kubectl 和 WebUI三种方式和 Argo 进行交互。 可以对接外部 idP,让 Argo Workflows 具备单点登录能力 Workflow 也是以 Pod 的形式在集群中运行的。 下图则是对工作流的一个描述。 这里不难发现,Argo Workflow 除了支持工作流之外,还支持了 DAG,它...