-
I have issues with the following workflow that is successfully linted but fails during execution: apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: my-first-pipeline-
annotations: {pipelines.kubeflow.org/kfp_sdk_version: 1.5.0-rc.2, pipelines.kubeflow.org/pipeline_compilation_time: '2021-04-07T21:59:43.991160',
pipelines.kubeflow.org/pipeline_spec: '{"description": "A hello world pipeline.",
"inputs": [{"default": "100Mi", "name": "memory_request", "optional": true,
"type": "String"}, {"default": "100m", "name": "cpu_request", "optional": true,
"type": "String"}], "name": "My first pipeline"}'}
labels: {pipelines.kubeflow.org/kfp_sdk_version: 1.5.0-rc.2}
spec:
entrypoint: my-first-pipeline
templates:
- name: echo
container:
args: [echo "hello world"]
command: [sh, -c]
image: library/bash:4.4.23
inputs:
parameters:
- {name: cpu_request}
- {name: memory_request}
podSpecPatch: '{"containers":[{"name":"main", "resources":{"limits":{"memory":
{{inputs.parameters.memory_request}}" }}, "cpu": "{{inputs.parameters.cpu_request}}"
}}}]}'
- name: my-first-pipeline
inputs:
parameters:
- {name: cpu_request}
- {name: memory_request}
dag:
tasks:
- name: echo
template: echo
arguments:
parameters:
- {name: cpu_request, value: '{{inputs.parameters.cpu_request}}'}
- {name: memory_request, value: '{{inputs.parameters.memory_request}}'}
arguments:
parameters:
- {name: memory_request, value: 100Mi}
- {name: cpu_request, value: 100m}
serviceAccountName: pipeline-runner kubectl gives the following description:
argo version 2.12.10 |
Beta Was this translation helpful? Give feedback.
Answered by
NikeNano
Apr 8, 2021
Replies: 1 comment
-
Found the issues, the json is invalid, my bad. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
alexec
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found the issues, the json is invalid, my bad.