Argo artifact passing cant save output

6/6/2019

I am trying to run the artifact passing example on Argoproj. However, I am getting the following error:

failed to save outputs: verify serviceaccount platform:default has necessary privileges

This error is appearing in the first step (generate-artifact) itself.

enter image description here

Selecting the generate-artifact component and clicking YAML gives following line highlighted

enter image description here

Nothing appears on clicking LOGS.

I need to understand the correct sequence of steps in running the YAML file so that this error does not appear and artifacts are passed. Could not find much resources on this issue other than this page where the issue is discussed on argo repository.

-- harshvardhan
argo-workflows
argoproj
docker
kubernetes

1 Answer

12/11/2019

All pods in a workflow run with the service account specified in workflow.spec.serviceAccountName, or if omitted, the default service account of the workflow's namespace.

Here the default service account of that namespace doesn't seem to be given any roles by default.

Try granting a role to the “default” service account in a namespace:

kubectl create rolebinding argo-default-binding \
  --clusterrole=cluster-admin \
  --serviceaccount=platform:default \
  --namespace=platform

Since the default service account now gets all access via the 'cluster-admin' role, the example should work now.

-- AnjanaDyna
Source: StackOverflow