Mounting Volumes
To use a persistent volume, we will first need to create one and then attach it to our deployments. You can learn how to create volumes using the Creating a Volume guideAttaching Volumes to a Deployment
Using mounted volumes in your deployment
Once you’ve attached a volume to your deployment, you can use it like any other directory within your job’s workflow. For instance, if you’ve downloaded a dataset, nameddataset.csv
, to a volume mounted at /data
, you can directly access it from within the Job as shown in the code below: