I'm trying to pull some container in my private gitlab registry but when I try I get the following error:
Failed to pull image "registry.mygitlab.com/name/container-backend:nginx": rpc error: code = Unknown desc = Error response from daemon: Get https://registry.mygitlab.com/v2/: x509: certificate is valid for ingress.local, not registry.mygitlab.com
In the deployment.yml I've added:
imagePullSecrets:
- name: registry-secret
and the registry-secret has been created with:
kubectl create \
—namespace=myns \
secret docker-registry registry2-secret \
--docker-server=registry.mygitlab.com \
--docker-username=myname \
--docker-password=mypassword
One month ago it worked and now it doesnt anymore.. and the credentials are correct :/