I'm trying to run a deployment in minikube which uses an image from a private repository hosted in EKS which I have access to.
I've successfully run the command docker pull *.dkr.ecr.eu-west-1.amazonaws.com/*:2021-09-20-1
to pull an image from the private repository hosted in eks.
However, when I try to apply a deployment in minikube with that image, I get the error
ErrImagePull
which then updates to ImagePullBackOff
.
Describing the pod says that the error is no basic auth credentials
.
I've run the command minikube addons configure registry-creds
and then
minikube addons apply registry-creds
, but this hasn't changed anything. Is there something I'm missing?
I've tried manually creating the secret as well, putting it in the default namespace, and this hasn't helped. I've also attached it as the imagePullSecrets: - name: registry-creds-ecr
in the deployment yaml, and this hasn't changed the outcome.
What should I do?