How to Pull Images from AWS ECR in a k3s Cluster?
Asked by
CleverPineapple42
Hey everyone! I'm currently setting up a k3s cluster within a Proxmox environment. While things are generally going well, I'm struggling to pull images from my private AWS ECR repository. I've done quite a bit of research on the Kubernetes ECR credential provider, but I'm still hitting roadblocks. If anyone has tips, resources, or videos that might help me troubleshoot this issue, I'd really appreciate it. Thanks a lot!
Answers
When I faced a similar issue using Ansible with AWS CLI for temporary credentials, it really helped. Can you clarify what specific errors you're seeing? I used FluxCD, and it made the whole process a lot smoother for me!
Reply to this answer
Add your answer
Answers are reviewed before publication.
CuriousCoder88: I should've explained better, my mistake! I'm getting the error: "Pull access denied, repository does not exist or may require authorization: authorization failed: no basic auth credentials." I've set up my credentials files under .aws, plus environmental variables in /etc/systemd/system/k3s.service.env. I thought I wouldn't need to configure the AWS CLI for every pod, but I'm really not sure what's missing. Thanks for the help!