-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Failed to pull kaniko image from private repo #3604
Comments
The error is like following,
|
/kind bug |
My guess is that it only looks into the |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Any response to this issue? I got the same error today, while using custom image as task image. apiVersion: v1
kind: Secret
metadata:
name: registry-secret
namespace: dev
annotations:
tekton.dev/docker-0: https://registry.example.com:8443
type: kubernetes.io/basic-auth
stringData:
username: testuser
password: testpassword
---
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: kubectl-deploy
namespace: dev
spec:
params:
- name: deploy-config-path
type: string
- name: image-tag
type: string
resources:
inputs:
- name: git-src
type: git
- name: image-repo
type: image
steps:
- name: kubectl-deploy
image: registry.example.com:8443/kubectl:r1
workingDir: /workspace/git-src
script: |
export IMAGE=$(resources.inputs.image-repo.url):$(params.image-tag)
echo "Deploying ${IMAGE} by $(params.deploy-config-path)"
envsubst < $(params.deploy-config-path) | kubectl apply -f -
However, images could be successfully pushed into the registry. So I believe the configuration is correct, is this a bug? |
The suggestion from @vdemeester did work... Just had to add the following to my
I did try a few other things which didn't work:
tekton-pipeline v0.42.0 |
Thanks, @adelmoradian. |
Agreed ! |
Should i add this to defining steps sections of documentation? |
@adelmoradian that would be great. I wonder if this could be a good how-to guide too https://tekton.dev/docs/how-to-guides/ @geriom |
Prior to this, docs were not clear on how to use a private image for a task - issue tektoncd#3604 If a task uses an image from a private repo, then `imagePullSecrets` must be provided at runtime via `podTemplate` - added note to the tasks docs
prior to this, docs were not clear on how to use a private image for a task - issue tektoncd#3604 if a task uses an image from a private repo, then `imagePullSecrets` must be provided at runtime via `podTemplate` - added note to the tasks docs
prior to this, docs were not clear on how to use a private image for a task - issue tektoncd#3604 if a task uses an image from a private repo, then `imagePullSecrets` must be provided at runtime via `podTemplate` - added note to the tasks docs
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
prior to this, docs were not clear on how to use a private image for a task - issue #3604 if a task uses an image from a private repo, then `imagePullSecrets` must be provided at runtime via `podTemplate` - added note to the tasks docs
Service account
Task
Task
The text was updated successfully, but these errors were encountered: