Examples
The following examples build up the volume operations described above.
- Data Ingress using an Ephemeral Volume creates an ephemeral volume, ingresses a single public file into it, and reads the file from a job. It runs unchanged.
- Data Ingress and Egress using an Ephemeral Volume extends the first example to a whole repository, two chained jobs, and egress to an S3 bucket. It needs your own bucket and secret.
- Reading and Writing Data on a Persistent Volume uses a persistent volume instead, where the data is already in place and the results survive the workflow. It needs a provisioner your administrator has configured.
Because many storage locations require secrets, we cannot supply a runnable example for every case. Most examples illustrate volume syntax rather than serving as tutorials you can run unchanged; each one states which it is.