Skip to content

Instantly share code, notes, and snippets.

@crobby
Last active August 14, 2019 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crobby/6b1c4ff9d69444c24556c7777e535f76 to your computer and use it in GitHub Desktop.
Save crobby/6b1c4ff9d69444c24556c7777e535f76 to your computer and use it in GitHub Desktop.
argo workflow that includes our health predictor model
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: healthpredict
spec:
entrypoint: health-workflow
arguments:
parameters:
- name: inputdata
value: 75:200
templates:
- name: echo
inputs:
parameters:
- name: message
container:
image: registry.access.redhat.com/ubi8
command: [echo, "{{inputs.parameters.message}}"]
- name: healthpredict
inputs:
parameters:
- name: inputdata
container:
env:
- name: APP_FILE
value: predict_health.py
- name: INPUT_DATA
value: "{{inputs.parameters.inputdata}}"
image: quay.io/croberts/argohealth
imagePullPolicy: Always
- name: health-workflow
dag:
tasks:
- name: Collect-User-Data
template: echo
arguments:
parameters: [{name: message, value: Collect-CSV-Data}]
- name: Health-Prediction
dependencies: [Collect-User-Data]
arguments:
parameters:
- name: inputdata
value: "{{workflow.parameters.inputdata}}"
template: healthpredict
- name: Make-Super-Smart-Recommendation
dependencies: [Health-Prediction]
template: echo
arguments:
parameters: [{name: message, value: Maybe lay off the pizza}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment