<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nayan</title>
    <description>The latest articles on DEV Community by Nayan (@nayankalsariya).</description>
    <link>https://dev.to/nayankalsariya</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F782154%2F5f9e2d98-8bb7-40ed-bcad-387578f69029.png</url>
      <title>DEV Community: Nayan</title>
      <link>https://dev.to/nayankalsariya</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nayankalsariya"/>
    <language>en</language>
    <item>
      <title>Deploy CockroachDB in a  DigitalOcean Kubernetes Cluster</title>
      <dc:creator>Nayan</dc:creator>
      <pubDate>Tue, 28 Dec 2021 19:36:00 +0000</pubDate>
      <link>https://dev.to/nayankalsariya/deploy-cockroachdb-in-a-digitalocean-kubernetes-cluster-3koe</link>
      <guid>https://dev.to/nayankalsariya/deploy-cockroachdb-in-a-digitalocean-kubernetes-cluster-3koe</guid>
      <description>&lt;p&gt;For the &lt;a href="https://www.digitalocean.com/community/pages/kubernetes-challenge"&gt;DigitalOcean Kubernetes Challenge&lt;/a&gt;, I wanted to deploy a database to a managed Kubernetes cluster, and decided to go with &lt;a href="https://www.cockroachlabs.com/docs/stable/install-cockroachdb."&gt;CockroachDB Core&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The process to deploy on Kubernetes was simple. I just followed the instructions in &lt;a href="https://www.cockroachlabs.com/docs/v21.2/deploy-cockroachdb-with-kubernetes.html,"&gt;CockroachDB official documentation&lt;/a&gt;, with just one change - In &lt;a href="https://www.cockroachlabs.com/docs/v21.2/deploy-cockroachdb-with-kubernetes.html#step-1-start-kubernetes"&gt;"Step 1. Start Kubernetes"&lt;/a&gt;, instead of using hosted GKE or EKS (as mentioned in the docs), I used DigitalOcean's &lt;a href="https://www.digitalocean.com/products/kubernetes/"&gt;Managed Kubernetes&lt;/a&gt; service.&lt;/p&gt;

&lt;p&gt;So my "Step 1. Start Kubernetes" was basically:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://docs.digitalocean.com/products/kubernetes/how-to/create-clusters/"&gt;How to Create Kubernetes Clusters Using the Control Panel&lt;/a&gt; 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.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Rest of the steps were as mentioned in the doc:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.cockroachlabs.com/docs/v21.2/deploy-cockroachdb-with-kubernetes.html#step-2-start-cockroachdb"&gt;Step 2. Start CockroachDB&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.cockroachlabs.com/docs/v21.2/deploy-cockroachdb-with-kubernetes.html#step-3-use-the-built-in-sql-client"&gt;Step 3. Use the built-in SQL client&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.cockroachlabs.com/docs/v21.2/deploy-cockroachdb-with-kubernetes.html#step-4-access-the-db-console"&gt;Step 4. Access the DB Console&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.cockroachlabs.com/docs/v21.2/deploy-cockroachdb-with-kubernetes.html#step-5-stop-the-cluster"&gt;Step 5. Stop the cluster&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>kubernetes</category>
      <category>digitalocean</category>
    </item>
  </channel>
</rss>
