Pods lifecycle when launched using cronjobs in kubernetes from spring cloud datfalow

11/23/2018

I am using spring cloud dataflow on kubernetes to run my batch jobs as tasks. I have put a scheduler which runs the job every hour. EVenthough in the UI I can see that there have been about 30 executions, in the kubernetes UI or terminal I can only see the pods and jobs of the last 3 executions. So I wanted to know if the scheduler deletes all the previous pods and if so how can I change that lifecycle.

-- Siddhant Sorann
cron
kubernetes
spring
spring-cloud
spring-cloud-dataflow

1 Answer

11/23/2018

Check what is your .spec.successfulJobsHistoryLimit in job spec. Default successfulJobsHistoryLimit is 3.

Ref: Jobs History Limits

-- Emruz Hossain
Source: StackOverflow