spring-cloud / spring-cloud-deployer-kubernetes

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

Mounting empty directory as a volume #440

Closed canerkoseren closed 3 years ago

canerkoseren commented 3 years ago

Hi all,

I want to deploy a task in openshift with a volume with empty directory property.

After reading the OCP - Managing Volumes section, it seems that I can set deployment properties as shown below

deployer.appl.volumes=[{name: 'empty-dir-vol', emptyDir: {medium: 'Memory'}}] deployer.appl.volumeMounts=[{name: 'empty-dir-vol', mountPath: '/run/path-appl'}]

After deploying the task with these properties, I am able to deploy and trigger the task without any error. But when I control the pod yaml or pod details, I can not see that the volume is mounted. Also volume and volume mounts are not placed in the pod yaml.

Is it possible to mount volume with emptyDir options?

spring-cloud-data-flow version: 2.7.1 spring-cloud-deployer-kubernetes-version: 2.5.1