Siddhant Sorann
Siddhant Sorann

Reputation: 323

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

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.

Upvotes: 0

Views: 293

Answers (1)

Emruz Hossain
Emruz Hossain

Reputation: 5568

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

Ref: Jobs History Limits

Upvotes: 2

Related Questions