Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Cockroach Labs 5 min read Announcement mediumAdept

Introducing the CockroachDB Kubernetes Operator

Cockroach Labs has made its CockroachDB Kubernetes Operator generally available. It is the same operator that has managed 600+ CockroachDB Cloud clusters for about three years, and its source can now be read on GitHub. It uses CockroachDB-specific custom resources with separate cluster-level and node-level reconciliation to automate rolling upgrades, health-aware scaling, certificate rotation, storage management such as WAL failover, and multi-region topology by mapping Kubernetes node labels to CockroachDB locality. Existing users can move from the legacy public operator or StatefulSet Helm charts through an opt-in migration controller that replaces nodes one at a time, checks cluster health between steps and supports rollback. The legacy options enter 12 months of maintenance when CockroachDB 27.3 ships in summer 2027 and then reach end-of-life.

Assumes: Kubernetes operators and CRDsHelmCockroachDB basics

Related posts

  • Introducing the Official ClickHouse Kubernetes Operator: Seamless Analytics at Scale

    ClickHouse mediumAdept

    ClickHouse has released an official open-source (Apache-2.0) Kubernetes operator that manages ClickHouse and ClickHouse Keeper clusters through CRDs, covering provisioning, sharding, replication, scaling, configuration rollout and rolling upgrades. Key design choices include ClickHouse Keeper for coordination instead of ZooKeeper, DatabaseReplicated as the default engine so DDL needs no ON CLUSTER clause, one StatefulSet per replica for fine-grained upgrade control, and TLS between clients, servers and Keeper. The operator stays deliberately thin, leaving logic in ClickHouse itself. Setup requires cert-manager for its webhooks, followed by installing the operator via kubectl or Helm and applying KeeperCluster and ClickHouseCluster manifests.

  • CockroachDB 26.4: One major upgrade a year with skip-level upgrades, run active-active across two data centers, and encrypt for the post-quantum era

    Cockroach Labs mediumAdept

    CockroachDB 26.4 introduces skip-level upgrades so operators can move from one annual .4 release to the next without stopping at intermediate releases, and adds active-active writes across two data centers via transactional logical data replication. The release also adds post-quantum TLS, passwordless OIDC/PKCE sign-in, workload identity mapped to SQL users, table-level audit logging, and persisted SQL insights and contention views exposed through information_schema. Operationally, it tightens several security defaults, clears persisted statement and transaction statistics on upgrade, and requires upgrading through 26.2 first; self-hosted binaries follow Cloud rollout by about two weeks.

  • The guide to secure deployments in CockroachDB

    Cockroach Labs easyNovice

    CockroachDB should run in secure mode in production rather than with the --insecure flag, which leaves the cluster open to any client, lets root log in without a password, and sends traffic unencrypted. Secure mode encrypts all node-to-node and client-server traffic with TLS. It authenticates through node client certificates for the special 'node' user, node addresses listed in server certificates to prevent man-in-the-middle attacks, and certificate Common Name or password checks for SQL users. Because the built-in Admin UI cannot alert when the cluster itself is down, operators should scrape CockroachDB's Prometheus metrics and route alerts through AlertManager.

  • How we stress test and benchmark CockroachDB for global scale

    Cockroach Labs easyNovice

    CockroachDB is exercised on a regular cadence of daily, weekly and per-release benchmarks, plus ad hoc and customer-partnered tests, mainly TPC-C, TPC-E and a YCSB-like KV workload. Reported figures include about 3,000–3,500 txn/s on a 3-node TPC-C cluster and 1.7M tpmC on 81 nodes. KV write throughput scaled from 160k QPS on 20 nodes to 1.2M QPS on 200 nodes, and TPC-E reached 40K txn/s on 96 nodes. Long-running release tests run workloads while backups, changefeeds, upgrades, schema changes and regional failures happen concurrently. That testing led to a recommendation not to use expiration-based leases above 10,000 ranges per node.

  • How to build a multi-region Python app with CockroachDB, Django, and K8s

    Cockroach Labs mediumAdept

    Data domiciling in a Django app on CockroachDB works by adding a 'cloud' field to a Customers model, deploying the app to Kubernetes clusters in Azure, AWS and GCP, and pinning each row to a region. The setup uses a computed crdb_internal_region column with a CASE expression and REGIONAL BY ROW table locality. ALTER DATABASE ... PLACEMENT RESTRICTED then keeps non-voting replicas in the right locality, and replication constraint reports verify that violating ranges have moved. Pinning data cuts consensus round trips for lower write latency and helps meet data sovereignty requirements.

The quest for software engineering knowledge.

Look:
Layout: