Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templates for workflows consuming EFS-backed volumes #123

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions workflows/read-from-volume.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
metadata:
generateName: read-from-volume-
namespace: daskhub
spec:
entrypoint: tree
volumes:
- name: noaa-ro
persistentVolumeClaim:
claimName: noaa-hydro-data
readOnly: true
templates:
- name: tree
container:
name: main
image: iankoulski/tree
args:
- /opt/data
volumeMounts:
- name: noaa-ro
mountPath: /opt/data
38 changes: 38 additions & 0 deletions workflows/transfer-to-volume.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
metadata:
generateName: transfer-to-volume-
namespace: daskhub
spec:
arguments:
parameters:
- name: command
value: sync
- name: source-s3-uri
- name: dest-path
value: /opt/data
entrypoint: s3-command
volumes:
- name: noaa
persistentVolumeClaim:
claimName: noaa-hydro-data
readOnly: false
templates:
- name: s3-command
inputs:
parameters:
- name: src
value: '{{workflow.parameters.source-s3-uri}}'
- name: dest
value: '{{workflow.parameters.dest-path}}'
- name: cmd
value: '{{workflow.parameters.command}}'
container:
name: main
image: amazon/aws-cli
args:
- s3
- '{{inputs.parameters.cmd}}'
- '{{inputs.parameters.src}}'
- '{{inputs.parameters.dest}}'
volumeMounts:
- name: noaa
mountPath: /opt/data