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
Failures with ECR registry #3587
Comments
The problem happens both in AKS and EKS and it is related to container registry services. If I switch to in-cluster Docker Registry by adding echo "docker-registry: enabled: true |
looks like we need to figure out the IAM roles so that kaniko can post to ECR |
ah - we need to create a custom kaniko docker image with the ECR + ACR docker credential helper binaries installed then it should just work I hope... https://github.com/jenkins-x/jenkins-x-builders-base/blob/master/builder-base/Dockerfile.common#L68-L81 |
the kaniko executor already has the ECR credentials helper https://github.com/GoogleContainerTools/kaniko/blob/master/deploy/Dockerfile#L23-L25 and https://github.com/GoogleContainerTools/kaniko/blob/master/deploy/Dockerfile#L33 we can add the ACR one too but I wonder if there is another reason this is failing? |
Issues go stale after 90d of inactivity. |
This is still a problem on AKS, I'm getting a similar error when running a simple PHP quickstart. My system is set to use the
I have forced docker credentials into the JX namespace as well by running:
And now I can get remote docker images but not push. |
so when I add the docker auth and set the repository I get this on a build:
|
Stale issues rot after 30d of inactivity. |
Issues go stale after 90d of inactivity. |
Stale issues rot after 30d of inactivity. |
Rotten issues close after 30d of inactivity. |
@jenkins-x-bot: 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 jenkins-x/lighthouse repository. |
Summary
When running an EKS or AKS cluster with tekton, pushing to container registry fails. The same works with GKE which uses container registry in the cluster. I did not observe the same problem with static Jenkins. The setup is "vanilla" new cluster created with
jx create cluster
.Steps to reproduce the behavior
Expected behavior
Pushing to the registry should work.
Actual behavior
Pushing to the registry fails.
Jx version
The output of
jx version
is:Jenkins type
Kubernetes cluster
Tested in AKS and EKS.
Operating system / Environment
macOS
The text was updated successfully, but these errors were encountered: