"Failed to pull image: pull access denied" on a private docker repository

Solution 1:

The secret key must be the same as the distribution namespace. If you want to connect your docker secret to kubernetes you can use below method.

Create a Secret based on existing Docker credentials (link)

kubectl create secret generic regcred \
    --from-file=.dockerconfigjson=<path/to/.docker/config.json> \
    --type=kubernetes.io/dockerconfigjson

I think you already did that. The namespace change should fix your problem