spring-cloud/spring-cloud-deployer

TTL for cleaning up completed pods of tasks and stream

dhpizza opened this issue · 0 comments

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.