-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Minikube Unable to pull images from AWS ECR on Kubernetes >v1.26.1 #19653
Comments
You need to create a secret on your namespace which will store the credentials of your private container registry to pull the image. kubectl create secret docker-registry <YOUR-SECRET-NAME> --docker-server=<URL of the Amazon ECR repository> --docker-username=<Amazon ECR repository-USERNAME> --docker-password=<"Amazon ECR repository ACCESS-TOKEN"> or <Amazon ECR repository Password> -n <YOUR-NAMESPACE> |
@Helion55 As I mentioned in the description, it was working fine before the k8s upgrade with just the iam instance role and without registry-creds, |
same here, is there a way to make minikube pull images from ECR without configuring anything except an IAM role that allows ECR access ? |
Bumping this |
What Happened?
I'm using Minikube on an AWS EC2 instance (amazonlinux2023) running Kubernetes v1.29.1 with 'Containerd' as the container runtime.
The goal is to pull images from a private Amazon ECR repository using the EC2 IAM instance role permissions, without storing explicit credentials.
Everything was working fine with just the IAM instance role until I've decided to upgrade the k8s version from v1.26.1.
However, when Minikube attempts to pull these images in pods, it fails with an authentication error (e.g., "no basic auth credentials").
How can I configure Minikube to use the EC2 IAM instance role for pulling images access, just as it worked before?
How to reproduce:
Operating System
Other
Driver
None (Baremetal)
The text was updated successfully, but these errors were encountered: