spring-cloud / spring-cloud-deployer

The Spring Cloud Deployer project defines an SPI for deploying long lived applications and short lived tasks
162 stars 87 forks source link

TTL for cleaning up completed pods of tasks and stream #430

Open dhpizza opened 7 months ago

dhpizza commented 7 months ago

Problem description: With ttlsSecondsAfterFinished we have the possibilty to clean up scheduled task (i.e. jobs and their pods in kubernetes). Is there also a configuration available for completed pods from (single launchend) tasks and streams?

Although, for launching a task, the UI offers this parameter spring.cloud.deployer.kubernetes to be set, it does not have any affect on the launched and completed task.

Solution description: Offer TTL also for completed pods not only jobs

Description of alternatives: Alternatively we run a delete-completed-pods cronjob to cleanup the k8s cluster.