Created
March 16, 2021 02:35
-
-
Save samiron/4016a9b291f4bd24ddddf91022109f42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
... | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
configMapGenerator: | |
- name: my-app-batch-config | |
namespace: appns | |
files: | |
- config/config.properties | |
- config/secrets.properties |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Used to discuss https://stackoverflow.com/q/66647466/1160106