-
Notifications
You must be signed in to change notification settings - Fork 2.4k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Is it possible to use AWS ECR as repository for K3S running on AWS EC2 #1427
Comments
We also want to ask this question. |
It appears that containerd does not support external credential helpers like docker does. See: https://github.com/containerd/cri/issues/1131. This would prevent you from being able to authenticate to ECR when using the default containerd backend. |
@brandond thanks your reply my question. We have changed it to docker but after setting the following flag
Seems unable to solve.. |
not nice but you can always generate the |
I simply set the relevant flag,
I'm want to use [aws cloud provider] but not sure how to apply related yaml? |
@HuJake All that does is set the ID. If you want a full cloud provider you can find deployment documentation at https://github.com/kubernetes/cloud-provider-aws. For authenticating Docker to ECR for image pulls you would want https://github.com/awslabs/amazon-ecr-credential-helper. |
With docker as container engine this is easily possible using the ecr-credential-helper. But what about containerd? Or is it a design decision to not include plugable authenticators? |
The containerd folks seem to have philosophical issues that preclude them from adding support for pluggable authentication. |
Than it is what it is ... |
I'm wondering the same... I can easily write a cronjob to grab new creds, but restarting k3s every time....? |
We are running k3s with docker as container engine here. I installed and configured the amazon-ecr-credential-helper. A So my understanding of this is that the kubelet service (running inside a docker container) cannot pull the image because it does not know about the credential helper. Any pointers on how to overcome this? |
Probably related: awslabs/amazon-ecr-credential-helper#210 |
I was able to solve/work around this by deploying registry-creds in my cluster (this is basically what the registry-creds addon in Minikube is doing) |
The "registry creds" project didn't work for me, I ran into upmc-enterprises/registry-creds#97. However, I was able to get auth working with K3s by slightly editing this script for my needs: https://stackoverflow.com/a/55658863 |
@urupaud I got it working by:
|
@mandrean |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
We have a k3s cluster which is running on AWS ec2, we want to deploy containers into this cluster using images in our AWS ECR, is this possible ?
The text was updated successfully, but these errors were encountered: