Prerequisites
-
A running ClickHouse Private cluster to serve as the parent (this guide uses
default-xx-01) -
The ClickHouse operator installed with the compute-compute separation feature flag enabled:
If the operator was installed without this flag, upgrade it with the flag set to
truebefore proceeding. -
Access to the Helm registry and the
onprem-clickhouse-clusterchart
1. Identify the Parent Cluster
Before creating a child, note the parent cluster’s name and namespace. The parent must be in a running state — children cannot be provisioned if the parent is stopped, terminated, or idled. For a cluster nameddefault-xx-01, the defaults are:
2. Create a Child Instance
Deploy a newClickHouseCluster using the same Helm chart you used for the parent, adding the parentCluster values to link it:
Guaranteed QoS (recommended)ClickHouse workloads should run with matching
requests and limits for
both CPU and memory. The SERVER_CPU/SERVER_MEMORY values below are
applied to both resources.requests and resources.limits in the
helm invocations that follow, which places the child pods in the
Guaranteed
QoS class. If you need to run with a different QoS class, review
Pod QoS: Guaranteed (recommended)
first for the trade-offs.- Share the parent’s ClickHouse Keeper ensemble (no separate Keeper deployment needed)
- Share the parent’s S3 data prefix
- Run its own ClickHouse Server pods with independent resource allocations
- Expose its own Kubernetes Service endpoint
3. Create a Read-Only Child (Optional)
To create a child that can query data but cannot write to it, add theisReadonly flag:
4. Verify the Child Instance
After the child is deployed, verify it is running:Limitations
- Parent must be running. You cannot provision child instances if the parent instance is stopped, terminated, or idled. The parent must be in a running state because children depend on the parent’s Keeper ensemble and shared data configuration.
- Delete children before the parent. You must delete all child instances before deleting the parent cluster. Attempting to delete a parent with active children will fail.
- Password resets apply to the parent. Password resets cannot be performed on child instances. To reset the password for a child instance, reset it on the parent instance instead. See how-to/reset-passwords.md.