https://dagster.io/ logo
Title
m

Mohammad Nazeeruddin

11/30/2021, 11:38 AM
Hi Team, k8s-jobs/pods deleting after 24hr. is it possible to delete k8s-jobs/pods on required time. like once pod status completed Can We configure those pods to got delete after 2hrs or 3hr? (Without commands, Can we configure in helm or tags).
d

daniel

11/30/2021, 2:02 PM
you can control this by setting
"dagster-k8s/config": {"job_spec_config": {"ttl_seconds_after_finished": 7200}}
(or whatever value you want) on your job tags: https://docs.dagster.io/deployment/guides/kubernetes/customizing-your-deployment#job-or-op-kubernetes-configuration
👍 1
@Dagster Bot docs document ttl_seconds_after_finished in the kubernetes docs
d

Dagster Bot

11/30/2021, 2:02 PM
m

Mohammad Nazeeruddin

11/30/2021, 3:06 PM
Okay thank you @daniel.😊
:condagster: 1
a

Ashish Khaitan

02/16/2022, 6:59 PM
@daniel is there a universal way to do this for all jobs? something in helm charts values.yml? Based on a slack search, it seemed like k8's version is important. I checked my k8s version and we are at 1.21 it seems
Client Version: <http://version.Info|version.Info>{Major:"1", Minor:"22", GitVersion:"v1.22.1", GitCommit:"632ed300f2c34f6d6d15ca4cef3d3c7073412212", GitTreeState:"clean", BuildDate:"2021-08-19T15:45:37Z", GoVersion:"go1.16.7", Compiler:"gc", Platform:"linux/amd64"}
Server Version: <http://version.Info|version.Info>{Major:"1", Minor:"21+", GitVersion:"v1.21.5-eks-bc4871b", GitCommit:"5236faf39f1b7a7dabea8df12726f25608131aa9", GitTreeState:"clean", BuildDate:"2021-10-29T23:32:16Z", GoVersion:"go1.16.8", Compiler:"gc", Platform:"linux/amd64"}
d

daniel

02/16/2022, 11:25 PM
Hi Ashish, I'm not sure but somebody else on the team may, would you mind making a new post for this