Argo workflow getting auto deleted after successful completion

11/11/2021

My Argo setup is on GKE.

What I observed is after a successful completion of a workflow, it's getting auto deleted. However, if a workflow fails, the workflow and all the node pods remain in the cluster.

I could not find any documentations around this. I'll be extremely grateful if you could share some pointers around this.

Note, this is happening only on GKE cluster. Running it on minikube doesn't reproduce this behaviour.

-- Chayan Ghosh
argo
argo-workflows
google-kubernetes-engine
kubernetes
kubernetes-helm

1 Answer

11/11/2021

https://argoproj.github.io/argo-workflows/fields/#ttlstrategy

Setting up ttlStrategy in my workflow/workflowTemplate spec solved this issue.

-- Chayan Ghosh
Source: StackOverflow