shlogg · Early preview
Mark Zlamal @world2mark

Automate CockroachDB Cluster Configuration With Kubernetes Jobs

Automate CockroachDB cluster setup with a repeatable Kubernetes job that runs SQL scripts from a ConfigMap, eliminating manual scripting and errors.

You frequently deploy CockroachDB clusters, and each time you need to create initial users, initial databases, some pre-loaded tables, adjustments to grants and privileges, and perhaps some custom zone-configurations based on your locality settings.

  
  
  The pain is repeating this activity over, and over, and over again...

With this guide, after you deploy (or redeploy) your cluster, you can quickly configure it using a repeatable, reliable, and consistent pattern, encapsulated as a single Kubernetes job. This approach eliminates the error-prone and manual process of running your scripts...