How to Integrate with a DigitalOcean Container Registry
Validated on 26 Sep 2022 • Last edited on 10 Apr 2023
DigitalOcean Kubernetes (DOKS) is a managed Kubernetes service that lets you deploy Kubernetes clusters without the complexities of handling the control plane and containerized infrastructure. Clusters are compatible with standard Kubernetes toolchains, integrate natively with DigitalOcean Load Balancers and volumes, and can be managed programmatically using the API and command line. For critical workloads, add the high-availability control plane to increase uptime with 99.95% SLA.
On DigitalOcean, you can integrate your Kubernetes cluster with a container registry via the control panel. This process requires you to have an existing container registry. If you don’t have an existing registry, first create one.
To integrate a cluster, go to the control panel and click the Kubernetes cluster you want to integrate. Then, click the Settings tab, scroll down to the DigitalOcean Container Registry Integration section, and click Edit to the right.
Check your container registry and click Save to confirm your change.
For instructions on integrating a Kubernetes cluster and container registry via generated secrets or kubectl, see our guide.
Add a Container Registry to a Cluster Using Automation
How to add a container registry using the DigitalOcean CLI
To add a container registry via the command-line, follow these steps:
Use the token to grant doctl access to your
DigitalOcean account.
doctl auth init
Finally, add a container registry with
doctl kubernetes cluster registry add. The basic usage looks
like this, but you'll want to read the usage docs for more details: