Mounting empty directory as a volume
canerkoseren opened this issue · comments
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