Job/Task in Kubernetes and Spring Cloud Task

1/22/2018

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 .

-- Shahbour
kubernetes
spring-cloud-task

1 Answer

1/25/2018

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.

-- Sabby Anandan
Source: StackOverflow