Argo Workflows entrypoint and templates
entrypoint
entrypoint로 지정된 template이 workflow의 시작점이 됩니다.
spec:
entrypoint: <templateName>
template
template은 workflow에서 작업을 정의할 때 사용하는 실행 단위입니다. container, script, 등은 실행 가능한 하나의 작업을 정의하며, steps, dag는 정의된 template들의 실행 순서가 정의된 하나의 집합을 작업으로 정의합니다.
spec:
templates:
- name: <templateName>
daemon: false
# retryStrategy:
# retryPolicy: OnFailure # OnFailure|OnError|OnTransientError|Always
# limit: null # null|integer
daemon:true로 설정하면 해당 컨테이너의 Ready status가 True가 되면 진행중 여부와 관계없이 다음 작업으로 넘어갑니다. 종료되지 않는 작업인 경우 전체 작업에서 임시로 사용될 데이터베이스를 생성하는 등의 용도로 사용할 수 있습니다.retryStrategy: (Optional) 템플릿이 실패했을 때, 재시도할 횟수와 간격을 설정할 수 있습니다.- https://argoproj.github.io/argo-workflows/retries/
retryPolicy:OnFailure(기본값),OnError,OnTransientError,Alwayslimit: null(기본값)이면 무한 재시도, 정수면 해당 횟수만큼 재시도합니다.expression: (Optional) 재시도 조건- variables
lastRetry.exitCode: exit 코드를 알 수 없는 경우 -1 입니다.lastRetry.status:Error,FailedlastRetry.duration: 마지막 재시도의 시작 시간부터 종료 시간까지의 간격입니다.lastRetry.message
- variables
backoffaffinity