This content originally appeared on DEV Community and was authored by Nayan
For the DigitalOcean Kubernetes Challenge, I wanted to deploy a database to a managed Kubernetes cluster, and decided to go with CockroachDB Core.
The process to deploy on Kubernetes was simple. I just followed the instructions in CockroachDB official documentation, with just one change - In "Step 1. Start Kubernetes", instead of using hosted GKE or EKS (as mentioned in the docs), I used DigitalOcean's Managed Kubernetes service.
So my "Step 1. Start Kubernetes" was basically:
- How to Create Kubernetes Clusters Using the Control Panel from DigitalOcean. I created a 3 node cluster with s-4vcpu-8gb droplets. You should be able to do it with slightly smaller droplets too.
Rest of the steps were as mentioned in the doc:
- Step 2. Start CockroachDB
- Step 3. Use the built-in SQL client
- Step 4. Access the DB Console
- Step 5. Stop the cluster
This content originally appeared on DEV Community and was authored by Nayan

Nayan | Sciencx (2021-12-28T19:36:00+00:00) Deploy CockroachDB in a DigitalOcean Kubernetes Cluster. Retrieved from https://www.scien.cx/2021/12/28/deploy-cockroachdb-in-a-digitalocean-kubernetes-cluster/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.