I created a Pod that have @EnableTaskLauncher
with spring-cloud-deployer-kubernetes
. It is receiving task requests through spring-cloud-stream
and launching the tasks.
Everything is working perfectly except that I want the task to be launched as Kind: Job
instead of Kind: Deployment
.
I could not find any configuration or property in spring-cloud-deployer-kubernetes
that do this or if it is available .
We moved away from the Jobs to Bare-pods model for Spring Cloud Task (in SCDF) to better control its lifecycle such as the clean shutdown of the container when the SCT-operation is complete.
However, there's spring-cloud/spring-cloud-deployer-kubernetes#163 that adds an option to choose between Jobs vs. Pods for Tasks. Please try it out and give us feedback on the PR.