I was struggled to pull a docker image from a private registry in Kubernetes environment. But everything seems okay. I added a secret to Kubernetes and then the secret information works well in my local. But when I tried to deploy a pod using an image ** no basic auth credentials ** error happened.
Then I finally fixed it. I didn’t create the credentials(secret) with a same namespace in Kubernetes environment. If you use a namespace for your k8s deployment you must know that all the objects related to the deployment should use the same namespace.