I have created ‘regcred’ secret with
kubectl create secret generic regcred --from-file=.dockerconfigjson=~/.docker/config.json --type=kubernetes.io/dockerconfigjson
and patched serviceaccount
kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "regcred"}]}'
Also added imagePullSecrets with regcred in helm chart using the private repo
but it wont pull from the private repos
Failed to pull image "myuser/myrepo:latest": rpc error: code = Unknown desc = Error response from daemon: pull access denied for myuser/myrepo, repository does not exist or may require 'docker login'
I have tried recycle of the nodes I have also tried switched between registry urls without success:
Is there something im missing or doing wrong?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there!
Have you checked the steps listed here: https://www.digitalocean.com/docs/images/container-registry/how-to/use-registry-docker-kubernetes/#use-images-from-your-registry-in-your-cluster
Those are for DOCR but should apply to all private repos.
Are you sure you are patching the “default” serviceaccount in the same namespace your deployment is in?
Are you sure that your deploymnet is being run by the default serviceaccount?
Perhaps you could try setting it directly in the deployment using the instructions linked above?
Hope this helps!
Regards,
John Kwiatkoski Senior Developer Support Engineer - Kubernetes
Hello, I would like to request an update of the documentation, and if it is possible to use a 3rd-party container registry.
The link in the answer is 404, the closest match I could find seemed to only offer the the DigitalOcean Container Registry, which I am not ready for.
Thank You, Scott Grodberg
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.