https://flyte.org logo
#flytekit
Title
# flytekit
f

Fredrick

10/14/2022, 9:03 AM
hi team, When using ShellTask, is there way to attach an ephemeral storage (emptyDir) to it ? The ShellTask needs some scratch space to download files.
s

Samhita Alla

10/14/2022, 11:55 AM
You can set ephemeral storage as
ephemeral_storage
in the task resources. You can send requests to shell task like any other task.
ShellTask(…, requests=Resources(ephemeral_storage="1Gi"))
k

Ketan (kumare3)

10/14/2022, 2:32 PM
Btw she’ll task can also become a pod, if you pass config=Pod(
f

Fredrick

10/14/2022, 3:46 PM
what is the mount point of the emptyDir inside the container ?
tried adding ephemeral request, it does not add any emptyDir volume to the pod
k

Ketan (kumare3)

10/14/2022, 5:08 PM
it does not
you have to use podConfig to do it
this is the same as pod task
cc @Samhita Alla