<p>I am trying to pull the image from the ECR repository inside the Kubernetes cluster, but I am not able to do this.</p>

<p>I tried creating a secret and updated in the pod file, but I am not able to do this I am getting an error "no basic auth credentials".</p>

<p>Please can anyone give me the step by step instructions to pull the image from a ECR repository inside the Kubernetes cluster.</p>

<p>Your problem may be caused by the fact that ECR credentials work only for 12 hours, so maybe you are trying to use expired credentials. </p>

<p>I recommend you to have a look at <a href="https://github.com/upmc-enterprises/registry-creds" rel="nofollow noreferrer">upmc-enterprises/registry-creds</a>. This tool can be installed on your cluster and automatically refresh ECR/GCR credentials before they expire.</p>
