Home / Companies / Cockroach Labs / Blog / Post Details
Content Deep Dive

Geographic Scale with Virtual Machines and Kubernetes Nodes

Blog post from Cockroach Labs

Post Details
Company
Date Published
Author
Mike Bookham
Word Count
3,746
Language
English
Hacker News Points
-
Summary

This tutorial demonstrates a multi-region deployment of CockroachDB across two Azure regions using Kubernetes and virtual machines. The deployment includes the following steps: 1. Infrastructure setup: Create three resource groups, one for each region, and deploy three virtual machines in each region. 2. Network setup: Configure VNet peering between the two regions to enable communication between them. 3. Kubernetes cluster setup: Deploy k3s Kubernetes clusters on the virtual machines using k3sup utility. 4. CockroachDB deployment: Use a Python script and modified Kubernetes manifests to deploy CockroachDB across the two regions. 5. Virtual machine deployment: Add the third region by manually installing CockroachDB on three virtual machines in that region. The final setup includes nine nodes distributed across three regions, with six nodes running as Kubernetes pods and three nodes running natively on virtual machines. The multi-region deployment ensures high availability and fault tolerance for the CockroachDB cluster.