spring-cloud / spring-cloud-deployer-kubernetes

The Spring Cloud Deployer implementation for Kubernetes
Apache License 2.0
157 stars 98 forks source link

Partition batch jobs launched from SCDF don't set deployer properties for worker task pods it launches #462

Open vrajkuma opened 2 years ago

vrajkuma commented 2 years ago

Discussed the issue in this stackoverflow post : https://stackoverflow.com/questions/69683040/scdf-partition-batch-job-using-spring-cloud-kubernetes-deployer-deployer-pro

Basically in running the partitioned-batch-job sample provided by SCDF in a kubernetes cluster, I am unable to set deployer properties for the worker tasks spawned by the master step. The deployer.<app-name>.kubernetes.<prop-name> properties only apply to the master pod that is created, but the worker pods it spawns using kubernetes deployer don't get them. For example, in my case setting properties for volumes/volumeMounts during the task launch don't get enforced on the worker pods/containers where the volumeMounts are actually needed to process files. These are mounted on the master pod though.

Also, didn't find any documentation on where and how we could set spring.cloud.deployer.properties for worker pods given those are launched by the partitioned task framework