ClickHouse is an open-source column-oriented OLAP database management system designed for real-time analytics. KubeBlocks provides production-ready ClickHouse cluster management on Kubernetes.
KubeBlocks supports two ClickHouse deployment topologies:
A single ClickHouse shard (or multiple independent shards) without a coordinator. Suitable for development, testing, or simple analytics workloads that do not require replicated tables.
Client → ClickHouse Shard 0 (1+ replicas)
→ ClickHouse Shard 1 (1+ replicas)
→ ...
ClickHouse with ClickHouse Keeper as the distributed coordination service. Keeper replaces ZooKeeper and enables replicated tables across shards and replicas.
Client → ClickHouse Shard 0 (replicas) ←→ ClickHouse Keeper (quorum)
→ ClickHouse Shard 1 (replicas) ←→
| Component | Role | Description |
|---|---|---|
ClickHouse (clickhouse) | Query engine | Columnar storage and query processing. Deployed as shards, each shard can have multiple replicas. |
ClickHouse Keeper (ch-keeper) | Coordination | Lightweight ZooKeeper-compatible service for replication coordination. Required for replicated tables. |
ClickHouse shards use the KubeBlocks sharding model:
shards: N × replicas: M = N×M ClickHouse pods| ClickHouse Version | KubeBlocks Addon Version |
|---|---|
| 25.4.4 | 1.0.3 |
| 24.8.3 | 1.0.3 |
| 22.8.21 | 1.0.3 |
clickhouse-backupstandalone topology does not support ClickHouse replicated tables (ReplicatedMergeTree). Use the cluster topology with Keeper for replication.post-scale-out-shard-for-clickhouse OpsRequest must be run to register new shards in the cluster configuration.