Skip to content

Instantly share code, notes, and snippets.

@samiron
Created March 16, 2021 02:35
Show Gist options
  • Save samiron/4016a9b291f4bd24ddddf91022109f42 to your computer and use it in GitHub Desktop.
Save samiron/4016a9b291f4bd24ddddf91022109f42 to your computer and use it in GitHub Desktop.
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: my-app-batch
namespace: appns
spec:
volumes:
- name: all-configs
configMap:
name: my-app-batch-config
templates:
- name: my-app-batch
container:
image: dockerhub.io/nice/image
envFrom:
configMapRef:
name: my-app-batch-config
volumeMounts:
- name: all-configs
subPath: config.properties
mountPath: ~/config.properties
- name: all-configs
subPath: secrets.properties
mountPath: ~/secrets.properties
- name: nightly
dag:
tasks:
- name: do-my-job
template: my-app-batch
arguments:
...
...
- name: finalize-my-job
template: my-app-batch
dependencies: [do-my-job]
arguments:
...
...
...
configMapGenerator:
- name: my-app-batch-config
namespace: appns
files:
- config/config.properties
- config/secrets.properties
@samiron
Copy link
Author

samiron commented Mar 16, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment