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

K8's deployer needs ability to launch pods without name collision #423

Open cppwfs opened 8 months ago

cppwfs commented 8 months ago

When remote partitioning a batch job you can specify a Executor like ThreadPoolTaskExecutor and thus the partitions are launched asynchronously and each partition launches a pod using the same instance of KubernetesTaskLauncher. What I noticed is that the same pod name was being re-used on some of the launch requests and thus an exception was thrown from Fabrik8 saying pod with x name already exists.

There is a PR 422 that I created that will synchronize the launch method and prevents the name from being overwritten.