-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Executor tries to use imagePullSecrets to pull a container image even if anonymous pull is enabled #9802
Comments
@vitalyrychkov can you provide more details like failed PodSpec and your env setup? Is there a way to reproduce locally? |
@sarabala1979 apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: cmdtest-
labels:
workflows.argoproj.io/archive-strategy: "false"
annotations:
workflows.argoproj.io/description: |
This is a test for image command and entrypoint
spec:
entrypoint: cmdtest
templates:
- name: cmdtest
container:
image: 'artifacts.mycorp.net/docker/docserver:latest' In the first run I got the same error, although I did not specify any imagePullSecret in the Workflow:
Then I tried with a non-existent version of my image:
Reverted back to the latest and submitted: I will keep an eye on the issue and try to nail it down as soon as it re-occurs or maybe someone else reports the same. Thank you |
I met the same issue But after I created another EKS 1.23 and install the Argo Workflow helm chart with the same values.yaml file, this issue happened. Even if the workflow crd is in the same namespace as the controller, the controller cannot read the imagePullSecret. My workaround is to turn off the |
RIght, my workaround was the same, however I did not have to disable *.create values, just added a ClusterRole to read the secret with a specific name in all namespaces and a ClusterRoleBinding to the workflow-controller's SA. |
This comment was marked as resolved.
This comment was marked as resolved.
1 similar comment
This comment was marked as duplicate.
This comment was marked as duplicate.
Hey, argo-workflows:
controller:
rbac:
secretWhitelist:
- image-pull-secret replace the name of the secret with any secret you may have. |
Hi, |
Pre-requisites
:latest
What happened/what you expected to happen?
Kubernetes pulls the same images without using imagePullSecrets if anonymous pull is allowed.
Argo executor shall also pull a container image (to check the cmd/args value) without using imagePullSecrets if anonymous pull is enabled.
Version
3.4.1
Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
The issue is related to a private images
Logs from the workflow controller
kubectl logs -n argo deploy/argo-helm-argo-workflows-workflow-controller | grep acm-adhoc-bps-db-version-1665584107
Logs from in your workflow's wait container
No wait logs available, seems argo did not come that far.
The text was updated successfully, but these errors were encountered: