I have an image uploaded in DigitalOcean’s container registry.
Via command line, how do I create a Kubernetes deployment using this image?
The full registry name is:
http://registry.digitalocean.com/myname/myimage
Running following command does not work. Getting image pull failure.
kubectl create deployment --image myname/myimage my-app
I have already setup the token stuff and set up the config file inside my .kube folder.
Thus the following command does work and my 3x nodes shows up in terminal.
kubectl get nodes
Issue is with the image. How do I reference that the docker image should come from the digital ocean registry?
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,
You can specify the image with the full URL fo the DigitalOcean Docker registry:
--image registry.digitalocean.com/myregistry/myimage
For more information, I would recommend checking this tutorial here on how to use your Private DigitalOcean Container Registry with Docker and Kubernetes:
https://www.digitalocean.com/docs/container-registry/how-to/use-registry-docker-kubernetes/
Regards, Bobby
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.